diff options
author | Amol Lad <amol@verismonetworks.com> | 2006-10-02 04:48:23 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-10-02 04:48:23 -0400 |
commit | 76a5027c374a638e55de5d8c4485ea0201254870 (patch) | |
tree | 250f1d0c3572077dc06a47cdc4ce5941e171b67f /drivers/mtd/maps/beech-mtd.c | |
parent | 553a8012088b3452c7d66ff60d2d06ad0c9bea00 (diff) |
[MTD] Cleanup of 'ioremap balanced with iounmap for drivers/mtd subsystem'
Updated version of patch, in response to comments from Francois Romieu
<romieu@fr.zoreil.com>
Remove gratuitous casts from iounmap and initialisation of variables.
Signed-off-by: Amol Lad <amol@verismonetworks.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/maps/beech-mtd.c')
-rw-r--r-- | drivers/mtd/maps/beech-mtd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/maps/beech-mtd.c b/drivers/mtd/maps/beech-mtd.c index a64b1a5ab316..d76d5981b863 100644 --- a/drivers/mtd/maps/beech-mtd.c +++ b/drivers/mtd/maps/beech-mtd.c | |||
@@ -72,7 +72,7 @@ static struct mtd_partition beech_partitions[2] = { | |||
72 | static int __init | 72 | static int __init |
73 | init_beech_mtd(void) | 73 | init_beech_mtd(void) |
74 | { | 74 | { |
75 | int err = 0; | 75 | int err; |
76 | 76 | ||
77 | printk("%s: 0x%08x at 0x%08x\n", NAME, SIZE, PADDR); | 77 | printk("%s: 0x%08x at 0x%08x\n", NAME, SIZE, PADDR); |
78 | 78 | ||
@@ -89,7 +89,7 @@ init_beech_mtd(void) | |||
89 | beech_mtd = do_map_probe("cfi_probe", &beech_mtd_map); | 89 | beech_mtd = do_map_probe("cfi_probe", &beech_mtd_map); |
90 | 90 | ||
91 | if (!beech_mtd) { | 91 | if (!beech_mtd) { |
92 | iounmap((void *) beech_mtd_map.virt); | 92 | iounmap(beech_mtd_map.virt); |
93 | return -ENXIO; | 93 | return -ENXIO; |
94 | } | 94 | } |
95 | 95 | ||
@@ -98,7 +98,7 @@ init_beech_mtd(void) | |||
98 | err = add_mtd_partitions(beech_mtd, beech_partitions, 2); | 98 | err = add_mtd_partitions(beech_mtd, beech_partitions, 2); |
99 | if (err) { | 99 | if (err) { |
100 | printk("%s: add_mtd_partitions failed\n", NAME); | 100 | printk("%s: add_mtd_partitions failed\n", NAME); |
101 | iounmap((void *) beech_mtd_map.virt); | 101 | iounmap(beech_mtd_map.virt); |
102 | } | 102 | } |
103 | 103 | ||
104 | return err; | 104 | return err; |