diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 10:16:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-05 21:21:29 +0200 |
commit | 7b6b5612380c829ea026c4a3ff427d362f46a1d9 (patch) | |
tree | 8986268bc56d0fcfdd16ac224897134a67e8ad67 /drivers/ide/gayle.c | |
parent | ide-disk_proc: use macro to replace magic number (diff) | |
download | linux-7b6b5612380c829ea026c4a3ff427d362f46a1d9.tar.xz linux-7b6b5612380c829ea026c4a3ff427d362f46a1d9.zip |
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/gayle.c')
-rw-r--r-- | drivers/ide/gayle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c index 0a8440ae0565..97a2f9dc75d8 100644 --- a/drivers/ide/gayle.c +++ b/drivers/ide/gayle.c @@ -132,7 +132,7 @@ static int __init amiga_gayle_ide_probe(struct platform_device *pdev) if (!request_mem_region(res->start, resource_size(res), "IDE")) return -EBUSY; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); pr_info("ide: Gayle IDE controller (A%u style%s)\n", pdata->explicit_ack ? 1200 : 4000, ide_doubler ? ", IDE doubler" : ""); |