diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 18:13:32 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 18:13:32 -0500 |
commit | f0eef25339f92f7cd4aeea23d9ae97987a5a1e82 (patch) | |
tree | 2472e94d39f43a9580a6d2d5d92de0b749023263 /drivers/mtd/maps | |
parent | 0cfea5dd98205f2fa318836da664a7d7df1afbc1 (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/arctic-mtd.c | 6 | ||||
-rw-r--r-- | drivers/mtd/maps/bast-flash.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/beech-mtd.c | 6 | ||||
-rw-r--r-- | drivers/mtd/maps/cfi_flagadm.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/cstm_mips_ixx.c | 8 | ||||
-rw-r--r-- | drivers/mtd/maps/dmv182.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/nettel.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/physmap.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/redwood.c | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index 24747bdc3e19..d132ed571f13 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -607,7 +607,7 @@ config MTD_BAST_MAXSIZE | |||
607 | default "4" | 607 | default "4" |
608 | 608 | ||
609 | config MTD_SHARP_SL | 609 | config MTD_SHARP_SL |
610 | bool "ROM maped on Sharp SL Series" | 610 | bool "ROM mapped on Sharp SL Series" |
611 | depends on MTD && ARCH_PXA | 611 | depends on MTD && ARCH_PXA |
612 | help | 612 | help |
613 | This enables access to the flash chip on the Sharp SL Series of PDAs. | 613 | This enables access to the flash chip on the Sharp SL Series of PDAs. |
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] = { | |||
96 | static int __init | 96 | static int __init |
97 | init_arctic_mtd(void) | 97 | init_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; |
diff --git a/drivers/mtd/maps/bast-flash.c b/drivers/mtd/maps/bast-flash.c index 51f962dd7e31..e074bb6787d2 100644 --- a/drivers/mtd/maps/bast-flash.c +++ b/drivers/mtd/maps/bast-flash.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/drivers/mtd/maps/bast_flash.c | 1 | /* linux/drivers/mtd/maps/bast-flash.c |
2 | * | 2 | * |
3 | * Copyright (c) 2004-2005 Simtec Electronics | 3 | * Copyright (c) 2004-2005 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
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; |
diff --git a/drivers/mtd/maps/cfi_flagadm.c b/drivers/mtd/maps/cfi_flagadm.c index 92b5d883d7b0..65e5ee552010 100644 --- a/drivers/mtd/maps/cfi_flagadm.c +++ b/drivers/mtd/maps/cfi_flagadm.c | |||
@@ -80,7 +80,7 @@ struct mtd_partition flagadm_parts[] = { | |||
80 | .size = FLASH_PARTITION2_SIZE | 80 | .size = FLASH_PARTITION2_SIZE |
81 | }, | 81 | }, |
82 | { | 82 | { |
83 | .name = "Persistant storage", | 83 | .name = "Persistent storage", |
84 | .offset = FLASH_PARTITION3_ADDR, | 84 | .offset = FLASH_PARTITION3_ADDR, |
85 | .size = FLASH_PARTITION3_SIZE | 85 | .size = FLASH_PARTITION3_SIZE |
86 | } | 86 | } |
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; |
diff --git a/drivers/mtd/maps/dmv182.c b/drivers/mtd/maps/dmv182.c index a43c49905cac..e0558b0b2fe6 100644 --- a/drivers/mtd/maps/dmv182.c +++ b/drivers/mtd/maps/dmv182.c | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | /* | 2 | /* |
3 | * drivers/mtd/maps/svme182.c | 3 | * drivers/mtd/maps/dmv182.c |
4 | * | 4 | * |
5 | * Flash map driver for the Dy4 SVME182 board | 5 | * Flash map driver for the Dy4 SVME182 board |
6 | * | 6 | * |
diff --git a/drivers/mtd/maps/nettel.c b/drivers/mtd/maps/nettel.c index 198e840ff6db..f9e8e5bcbc33 100644 --- a/drivers/mtd/maps/nettel.c +++ b/drivers/mtd/maps/nettel.c | |||
@@ -463,7 +463,7 @@ int __init nettel_init(void) | |||
463 | 463 | ||
464 | #ifdef CONFIG_MTD_CFI_INTELEXT | 464 | #ifdef CONFIG_MTD_CFI_INTELEXT |
465 | out_unmap1: | 465 | out_unmap1: |
466 | iounmap((void *) nettel_intel_map.virt); | 466 | iounmap(nettel_intel_map.virt); |
467 | #endif | 467 | #endif |
468 | 468 | ||
469 | out_unmap2: | 469 | out_unmap2: |
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index bc7cc71788bc..d1717763f719 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c | |||
@@ -62,7 +62,7 @@ static int physmap_flash_remove(struct platform_device *dev) | |||
62 | } | 62 | } |
63 | 63 | ||
64 | if (info->map.virt != NULL) | 64 | if (info->map.virt != NULL) |
65 | iounmap((void *)info->map.virt); | 65 | iounmap(info->map.virt); |
66 | 66 | ||
67 | if (info->res != NULL) { | 67 | if (info->res != NULL) { |
68 | release_resource(info->res); | 68 | release_resource(info->res); |
diff --git a/drivers/mtd/maps/redwood.c b/drivers/mtd/maps/redwood.c index 2257d2b500c0..4d858b3d5f82 100644 --- a/drivers/mtd/maps/redwood.c +++ b/drivers/mtd/maps/redwood.c | |||
@@ -126,7 +126,7 @@ static struct mtd_info *redwood_mtd; | |||
126 | 126 | ||
127 | int __init init_redwood_flash(void) | 127 | int __init init_redwood_flash(void) |
128 | { | 128 | { |
129 | int err = 0; | 129 | int err; |
130 | 130 | ||
131 | printk(KERN_NOTICE "redwood: flash mapping: %x at %x\n", | 131 | printk(KERN_NOTICE "redwood: flash mapping: %x at %x\n", |
132 | WINDOW_SIZE, WINDOW_ADDR); | 132 | WINDOW_SIZE, WINDOW_ADDR); |