1 --- a/drivers/mtd/devices/block2mtd.c
2 +++ b/drivers/mtd/devices/block2mtd.c
3 @@ -112,7 +112,7 @@ static int _block2mtd_erase(struct block
7 - max = (u_long*)page_address(page) + PAGE_SIZE;
8 + max = (u_long*) ((u8 *) page_address(page) + PAGE_SIZE);
9 for (p=(u_long*)page_address(page); p<max; p++)