summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/pxa2xx-flash.c
diff options
context:
space:
mode:
authorJingoo Han2013-07-30 10:18:06 +0200
committerDavid Woodhouse2013-08-30 22:34:32 +0200
commitd20d5a5780a014bc4d24dbcb6daf7673a9dddf98 (patch)
tree0ae7a1c94032860d72a57af83a435eb776b5e70f /drivers/mtd/maps/pxa2xx-flash.c
parentmtd: devices: use dev_get_platdata() (diff)
downloadkernel-qcow2-linux-d20d5a5780a014bc4d24dbcb6daf7673a9dddf98.tar.gz
kernel-qcow2-linux-d20d5a5780a014bc4d24dbcb6daf7673a9dddf98.tar.xz
kernel-qcow2-linux-d20d5a5780a014bc4d24dbcb6daf7673a9dddf98.zip
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/pxa2xx-flash.c')
-rw-r--r--drivers/mtd/maps/pxa2xx-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index 22c55cbf3168..d210d131fef2 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -49,7 +49,7 @@ static const char * const probes[] = { "RedBoot", "cmdlinepart", NULL };
static int pxa2xx_flash_probe(struct platform_device *pdev)
{
- struct flash_platform_data *flash = pdev->dev.platform_data;
+ struct flash_platform_data *flash = dev_get_platdata(&pdev->dev);
struct pxa2xx_flash_info *info;
struct resource *res;