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/cstm_mips_ixx.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/cstm_mips_ixx.c')
-rw-r--r-- | drivers/mtd/maps/cstm_mips_ixx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/maps/cstm_mips_ixx.c b/drivers/mtd/maps/cstm_mips_ixx.c index d6bef100d69a..df2c38ef105a 100644 --- a/drivers/mtd/maps/cstm_mips_ixx.c +++ b/drivers/mtd/maps/cstm_mips_ixx.c | |||
@@ -175,8 +175,8 @@ int __init init_cstm_mips_ixx(void) | |||
175 | printk(KERN_WARNING "Failed to ioremap\n"); | 175 | printk(KERN_WARNING "Failed to ioremap\n"); |
176 | for (j = 0; j < i; j++) { | 176 | for (j = 0; j < i; j++) { |
177 | if (cstm_mips_ixx_map[j].virt) { | 177 | if (cstm_mips_ixx_map[j].virt) { |
178 | iounmap((void *)cstm_mips_ixx_map[j].virt); | 178 | iounmap(cstm_mips_ixx_map[j].virt); |
179 | cstm_mips_ixx_map[j].virt = 0; | 179 | cstm_mips_ixx_map[j].virt = NULL; |
180 | } | 180 | } |
181 | } | 181 | } |
182 | return -EIO; | 182 | return -EIO; |
@@ -214,8 +214,8 @@ int __init init_cstm_mips_ixx(void) | |||
214 | else { | 214 | else { |
215 | for (i = 0; i < PHYSMAP_NUMBER; i++) { | 215 | for (i = 0; i < PHYSMAP_NUMBER; i++) { |
216 | if (cstm_mips_ixx_map[i].virt) { | 216 | if (cstm_mips_ixx_map[i].virt) { |
217 | iounmap((void *)cstm_mips_ixx_map[i].virt); | 217 | iounmap(cstm_mips_ixx_map[i].virt); |
218 | cstm_mips_ixx_map[i].virt = 0; | 218 | cstm_mips_ixx_map[i].virt = NULL; |
219 | } | 219 | } |
220 | } | 220 | } |
221 | return -ENXIO; | 221 | return -ENXIO; |