aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ixp4xx.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 04:18:06 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-30 16:34:32 -0400
commitd20d5a5780a014bc4d24dbcb6daf7673a9dddf98 (patch)
tree0ae7a1c94032860d72a57af83a435eb776b5e70f /drivers/mtd/maps/ixp4xx.c
parent0278fd3fa34fb029e40224dd83d2628254f45481 (diff)
mtd: maps: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/ixp4xx.c')
-rw-r--r--drivers/mtd/maps/ixp4xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c
index 09c542b3a7f0..10debfea81e7 100644
--- a/drivers/mtd/maps/ixp4xx.c
+++ b/drivers/mtd/maps/ixp4xx.c
@@ -152,7 +152,7 @@ static const char * const probes[] = { "RedBoot", "cmdlinepart", NULL };
152 152
153static int ixp4xx_flash_remove(struct platform_device *dev) 153static int ixp4xx_flash_remove(struct platform_device *dev)
154{ 154{
155 struct flash_platform_data *plat = dev->dev.platform_data; 155 struct flash_platform_data *plat = dev_get_platdata(&dev->dev);
156 struct ixp4xx_flash_info *info = platform_get_drvdata(dev); 156 struct ixp4xx_flash_info *info = platform_get_drvdata(dev);
157 157
158 if(!info) 158 if(!info)
@@ -178,7 +178,7 @@ static int ixp4xx_flash_remove(struct platform_device *dev)
178 178
179static int ixp4xx_flash_probe(struct platform_device *dev) 179static int ixp4xx_flash_probe(struct platform_device *dev)
180{ 180{
181 struct flash_platform_data *plat = dev->dev.platform_data; 181 struct flash_platform_data *plat = dev_get_platdata(&dev->dev);
182 struct ixp4xx_flash_info *info; 182 struct ixp4xx_flash_info *info;
183 struct mtd_part_parser_data ppdata = { 183 struct mtd_part_parser_data ppdata = {
184 .origin = dev->resource->start, 184 .origin = dev->resource->start,