diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 12:18:06 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-31 00:34:32 +0400 |
commit | d20d5a5780a014bc4d24dbcb6daf7673a9dddf98 (patch) | |
tree | 0ae7a1c94032860d72a57af83a435eb776b5e70f /drivers/mtd/maps/latch-addr-flash.c | |
parent | 0278fd3fa34fb029e40224dd83d2628254f45481 (diff) | |
download | linux-d20d5a5780a014bc4d24dbcb6daf7673a9dddf98.tar.xz |
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/latch-addr-flash.c')
-rw-r--r-- | drivers/mtd/maps/latch-addr-flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/maps/latch-addr-flash.c b/drivers/mtd/maps/latch-addr-flash.c index 675ccb8c3cd9..98bb5d5375d7 100644 --- a/drivers/mtd/maps/latch-addr-flash.c +++ b/drivers/mtd/maps/latch-addr-flash.c @@ -103,7 +103,7 @@ static int latch_addr_flash_remove(struct platform_device *dev) if (info == NULL) return 0; - latch_addr_data = dev->dev.platform_data; + latch_addr_data = dev_get_platdata(&dev->dev); if (info->mtd != NULL) { mtd_device_unregister(info->mtd); @@ -134,7 +134,7 @@ static int latch_addr_flash_probe(struct platform_device *dev) int chipsel; int err; - latch_addr_data = dev->dev.platform_data; + latch_addr_data = dev_get_platdata(&dev->dev); if (latch_addr_data == NULL) return -ENODEV; |