aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/devices/block2mtd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c
index f9f2ce7806b0..6a9fb80339fb 100644
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
@@ -111,8 +111,8 @@ static int _block2mtd_erase(struct block2mtd_dev *dev, loff_t to, size_t len)
111 if (IS_ERR(page)) 111 if (IS_ERR(page))
112 return PTR_ERR(page); 112 return PTR_ERR(page);
113 113
114 max = (u_long*)page_address(page) + PAGE_SIZE; 114 max = page_address(page) + PAGE_SIZE;
115 for (p=(u_long*)page_address(page); p<max; p++) 115 for (p=page_address(page); p<max; p++)
116 if (*p != -1UL) { 116 if (*p != -1UL) {
117 lock_page(page); 117 lock_page(page);
118 memset(page_address(page), 0xff, PAGE_SIZE); 118 memset(page_address(page), 0xff, PAGE_SIZE);