aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/arctic-mtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/arctic-mtd.c')
-rw-r--r--drivers/mtd/maps/arctic-mtd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/maps/arctic-mtd.c b/drivers/mtd/maps/arctic-mtd.c
index 642d96bc8919..2cc902436275 100644
--- a/drivers/mtd/maps/arctic-mtd.c
+++ b/drivers/mtd/maps/arctic-mtd.c
@@ -96,7 +96,7 @@ static struct mtd_partition arctic_partitions[PARTITIONS] = {
96static int __init 96static int __init
97init_arctic_mtd(void) 97init_arctic_mtd(void)
98{ 98{
99 int err = 0; 99 int err;
100 100
101 printk("%s: 0x%08x at 0x%08x\n", NAME, SIZE, PADDR); 101 printk("%s: 0x%08x at 0x%08x\n", NAME, SIZE, PADDR);
102 102
@@ -112,7 +112,7 @@ init_arctic_mtd(void)
112 arctic_mtd = do_map_probe("cfi_probe", &arctic_mtd_map); 112 arctic_mtd = do_map_probe("cfi_probe", &arctic_mtd_map);
113 113
114 if (!arctic_mtd) { 114 if (!arctic_mtd) {
115 iounmap((void *) arctic_mtd_map.virt); 115 iounmap(arctic_mtd_map.virt);
116 return -ENXIO; 116 return -ENXIO;
117 } 117 }
118 118
@@ -121,7 +121,7 @@ init_arctic_mtd(void)
121 err = add_mtd_partitions(arctic_mtd, arctic_partitions, PARTITIONS); 121 err = add_mtd_partitions(arctic_mtd, arctic_partitions, PARTITIONS);
122 if (err) { 122 if (err) {
123 printk("%s: add_mtd_partitions failed\n", NAME); 123 printk("%s: add_mtd_partitions failed\n", NAME);
124 iounmap((void *) arctic_mtd_map.virt); 124 iounmap(arctic_mtd_map.virt);
125 } 125 }
126 126
127 return err; 127 return err;