aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-10-29 10:51:14 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-29 10:51:14 -0400
commit57725f0a94435355214977bb9b0e5089bba1b173 (patch)
tree5b41dca6ab5cbe0f83cd8f553c5b5588aa97e61c /drivers/mtd/maps
parent8c18fe2562c45180c407872d05857c55c1e5e37b (diff)
[ARM] Rename 'data' to 'plat' in sa1100 MTD map driver
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/sa1100-flash.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index 6a8e0caf9fdc..1920bcbc05d7 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -130,7 +130,7 @@ struct sa_subdev_info {
130 char name[16]; 130 char name[16];
131 struct map_info map; 131 struct map_info map;
132 struct mtd_info *mtd; 132 struct mtd_info *mtd;
133 struct flash_platform_data *data; 133 struct flash_platform_data *plat;
134}; 134};
135 135
136struct sa_info { 136struct sa_info {
@@ -143,7 +143,7 @@ struct sa_info {
143static void sa1100_set_vpp(struct map_info *map, int on) 143static void sa1100_set_vpp(struct map_info *map, int on)
144{ 144{
145 struct sa_subdev_info *subdev = container_of(map, struct sa_subdev_info, map); 145 struct sa_subdev_info *subdev = container_of(map, struct sa_subdev_info, map);
146 subdev->data->set_vpp(on); 146 subdev->plat->set_vpp(on);
147} 147}
148 148
149static void sa1100_destroy_subdev(struct sa_subdev_info *subdev) 149static void sa1100_destroy_subdev(struct sa_subdev_info *subdev)
@@ -187,7 +187,7 @@ static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *r
187 goto out; 187 goto out;
188 } 188 }
189 189
190 if (subdev->data->set_vpp) 190 if (subdev->plat->set_vpp)
191 subdev->map.set_vpp = sa1100_set_vpp; 191 subdev->map.set_vpp = sa1100_set_vpp;
192 192
193 subdev->map.phys = phys; 193 subdev->map.phys = phys;
@@ -204,7 +204,7 @@ static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *r
204 * Now let's probe for the actual flash. Do it here since 204 * Now let's probe for the actual flash. Do it here since
205 * specific machine settings might have been set above. 205 * specific machine settings might have been set above.
206 */ 206 */
207 subdev->mtd = do_map_probe(subdev->data->map_name, &subdev->map); 207 subdev->mtd = do_map_probe(subdev->plat->map_name, &subdev->map);
208 if (subdev->mtd == NULL) { 208 if (subdev->mtd == NULL) {
209 ret = -ENXIO; 209 ret = -ENXIO;
210 goto err; 210 goto err;
@@ -245,7 +245,7 @@ static void sa1100_destroy(struct sa_info *info)
245} 245}
246 246
247static struct sa_info *__init 247static struct sa_info *__init
248sa1100_setup_mtd(struct platform_device *pdev, struct flash_platform_data *flash) 248sa1100_setup_mtd(struct platform_device *pdev, struct flash_platform_data *plat)
249{ 249{
250 struct sa_info *info; 250 struct sa_info *info;
251 int nr, size, i, ret = 0; 251 int nr, size, i, ret = 0;
@@ -288,7 +288,7 @@ sa1100_setup_mtd(struct platform_device *pdev, struct flash_platform_data *flash
288 288
289 subdev->map.name = subdev->name; 289 subdev->map.name = subdev->name;
290 sprintf(subdev->name, "sa1100-%d", i); 290 sprintf(subdev->name, "sa1100-%d", i);
291 subdev->data = flash; 291 subdev->plat = plat;
292 292
293 ret = sa1100_probe_subdev(subdev, res); 293 ret = sa1100_probe_subdev(subdev, res);
294 if (ret) 294 if (ret)
@@ -346,16 +346,16 @@ static const char *part_probes[] = { "cmdlinepart", "RedBoot", NULL };
346static int __init sa1100_mtd_probe(struct device *dev) 346static int __init sa1100_mtd_probe(struct device *dev)
347{ 347{
348 struct platform_device *pdev = to_platform_device(dev); 348 struct platform_device *pdev = to_platform_device(dev);
349 struct flash_platform_data *flash = pdev->dev.platform_data; 349 struct flash_platform_data *plat = pdev->dev.platform_data;
350 struct mtd_partition *parts; 350 struct mtd_partition *parts;
351 const char *part_type = NULL; 351 const char *part_type = NULL;
352 struct sa_info *info; 352 struct sa_info *info;
353 int err, nr_parts = 0; 353 int err, nr_parts = 0;
354 354
355 if (!flash) 355 if (!plat)
356 return -ENODEV; 356 return -ENODEV;
357 357
358 info = sa1100_setup_mtd(pdev, flash); 358 info = sa1100_setup_mtd(pdev, plat);
359 if (IS_ERR(info)) { 359 if (IS_ERR(info)) {
360 err = PTR_ERR(info); 360 err = PTR_ERR(info);
361 goto out; 361 goto out;
@@ -372,8 +372,8 @@ static int __init sa1100_mtd_probe(struct device *dev)
372 } else 372 } else
373#endif 373#endif
374 { 374 {
375 parts = flash->parts; 375 parts = plat->parts;
376 nr_parts = flash->nr_parts; 376 nr_parts = plat->nr_parts;
377 part_type = "static"; 377 part_type = "static";
378 } 378 }
379 379