aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/tqm834x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/tqm834x.c')
-rw-r--r--drivers/mtd/maps/tqm834x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/maps/tqm834x.c b/drivers/mtd/maps/tqm834x.c
index d0bc9593cb4d..c7ae9a515c1a 100644
--- a/drivers/mtd/maps/tqm834x.c
+++ b/drivers/mtd/maps/tqm834x.c
@@ -133,7 +133,7 @@ static int __init init_tqm834x_mtd(void)
133 133
134 pr_debug("%s: chip probing count %d\n", __FUNCTION__, idx); 134 pr_debug("%s: chip probing count %d\n", __FUNCTION__, idx);
135 135
136 map_banks[idx] = 136 map_banks[idx] =
137 (struct map_info *)kmalloc(sizeof(struct map_info), 137 (struct map_info *)kmalloc(sizeof(struct map_info),
138 GFP_KERNEL); 138 GFP_KERNEL);
139 if (map_banks[idx] == NULL) { 139 if (map_banks[idx] == NULL) {
@@ -193,7 +193,7 @@ static int __init init_tqm834x_mtd(void)
193 tqm834x_partitions_bank1[n - 1].size = 193 tqm834x_partitions_bank1[n - 1].size =
194 mtd_banks[0]->size - 194 mtd_banks[0]->size -
195 tqm834x_partitions_bank1[n - 1].offset; 195 tqm834x_partitions_bank1[n - 1].offset;
196 196
197 /* check if we have second bank? */ 197 /* check if we have second bank? */
198 if (num_banks == 2) { 198 if (num_banks == 2) {
199 n = ARRAY_SIZE(tqm834x_partitions_bank2); 199 n = ARRAY_SIZE(tqm834x_partitions_bank2);
@@ -227,11 +227,11 @@ static int __init init_tqm834x_mtd(void)
227 "available, registering whole device\n", idx); 227 "available, registering whole device\n", idx);
228 add_mtd_device(mtd_banks[idx]); 228 add_mtd_device(mtd_banks[idx]);
229 } else { 229 } else {
230 printk(KERN_NOTICE 230 printk(KERN_NOTICE
231 "TQM834x flash bank %d: Using %s partition " 231 "TQM834x flash bank %d: Using %s partition "
232 "definition\n", idx, part_banks[idx].type); 232 "definition\n", idx, part_banks[idx].type);
233 add_mtd_partitions(mtd_banks[idx], 233 add_mtd_partitions(mtd_banks[idx],
234 part_banks[idx].mtd_part, 234 part_banks[idx].mtd_part,
235 part_banks[idx].nums); 235 part_banks[idx].nums);
236 } 236 }
237 } 237 }