aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide_platform.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 04:16:47 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-05 15:21:29 -0400
commit7b6b5612380c829ea026c4a3ff427d362f46a1d9 (patch)
tree8986268bc56d0fcfdd16ac224897134a67e8ad67 /drivers/ide/ide_platform.c
parent6fcf0497ffcc18c18991b81cf5e4c388264df938 (diff)
ide: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide_platform.c')
-rw-r--r--drivers/ide/ide_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide_platform.c b/drivers/ide/ide_platform.c
index ba4bfbead24b..a8b4b6af80e7 100644
--- a/drivers/ide/ide_platform.c
+++ b/drivers/ide/ide_platform.c
@@ -56,7 +56,7 @@ static int plat_ide_probe(struct platform_device *pdev)
56 struct ide_hw hw, *hws[] = { &hw }; 56 struct ide_hw hw, *hws[] = { &hw };
57 struct ide_port_info d = platform_ide_port_info; 57 struct ide_port_info d = platform_ide_port_info;
58 58
59 pdata = pdev->dev.platform_data; 59 pdata = dev_get_platdata(&pdev->dev);
60 60
61 /* get a pointer to the register memory */ 61 /* get a pointer to the register memory */
62 res_base = platform_get_resource(pdev, IORESOURCE_IO, 0); 62 res_base = platform_get_resource(pdev, IORESOURCE_IO, 0);