]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/dataflash.c
pl01x: use C structs and readl/writel
[u-boot] / 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;