diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-13 14:53:08 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-11-13 15:04:52 +0000 |
commit | d9a682a592ff5905d328c648fd30ee7fa12ce8ab (patch) | |
tree | 5a6a09c4a9cef6f29dcab95f36db5ac6b6e6578d /drivers/mtd/maps/h720x-flash.c | |
parent | 1e8b0416ca387d754410a4e5d6b92ad6e2fb00eb (diff) | |
download | kernel_goldelico_gta04-d9a682a592ff5905d328c648fd30ee7fa12ce8ab.zip kernel_goldelico_gta04-d9a682a592ff5905d328c648fd30ee7fa12ce8ab.tar.gz kernel_goldelico_gta04-d9a682a592ff5905d328c648fd30ee7fa12ce8ab.tar.bz2 |
[ARM] cdb89712,clps7500,h720x: avoid namespace clash for FLASH_* constants
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mtd/maps/h720x-flash.c')
-rw-r--r-- | drivers/mtd/maps/h720x-flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/maps/h720x-flash.c b/drivers/mtd/maps/h720x-flash.c index 35fef65..3b959fa 100644 --- a/drivers/mtd/maps/h720x-flash.c +++ b/drivers/mtd/maps/h720x-flash.c @@ -24,8 +24,8 @@ static struct mtd_info *mymtd; static struct map_info h720x_map = { .name = "H720X", .bankwidth = 4, - .size = FLASH_SIZE, - .phys = FLASH_PHYS, + .size = H720X_FLASH_SIZE, + .phys = H720X_FLASH_PHYS, }; static struct mtd_partition h720x_partitions[] = { @@ -70,7 +70,7 @@ int __init h720x_mtd_init(void) char *part_type = NULL; - h720x_map.virt = ioremap(FLASH_PHYS, FLASH_SIZE); + h720x_map.virt = ioremap(h720x_map.phys, h720x_map.size); if (!h720x_map.virt) { printk(KERN_ERR "H720x-MTD: ioremap failed\n"); |