]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/mtd/dataflash.c
NAND: ADD page Parameter to all read_page/read_page_raw API's
[people/ms/u-boot.git] / drivers / mtd / dataflash.c
index 58be18255478777169b76994e052f66ee9091ce2..96cd395e71a7ad30ab230cc1b56f040e3bcc0e7c 100644 (file)
@@ -131,7 +131,7 @@ int AT91F_DataflashInit (void)
                        break;
                }
                /* set the last area end to the dataflash size*/
-               area_list[NB_DATAFLASH_AREA - 1].end =
+               dataflash_info[i].end_address =
                                (dataflash_info[i].Device.pages_number *
                                dataflash_info[i].Device.pages_size) - 1;