summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_samsung_cf.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:16:05 +0900
committerTejun Heo <tj@kernel.org>2013-07-30 08:59:24 -0400
commit61b8c345aa8c50c6a99a90560a107d02124f0293 (patch)
tree7e7c8cd598333b4f1c7deb817af07af38f1f45be /drivers/ata/pata_samsung_cf.c
parente8038ebbd51df65bf5f4728c190397041a42e903 (diff)
downloadlwn-61b8c345aa8c50c6a99a90560a107d02124f0293.tar.gz
lwn-61b8c345aa8c50c6a99a90560a107d02124f0293.zip
ata: 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: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_samsung_cf.c')
-rw-r--r--drivers/ata/pata_samsung_cf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 6ef27e98c508..951aa951ffdb 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -475,7 +475,7 @@ static void pata_s3c_hwinit(struct s3c_ide_info *info,
static int __init pata_s3c_probe(struct platform_device *pdev)
{
- struct s3c_ide_platdata *pdata = pdev->dev.platform_data;
+ struct s3c_ide_platdata *pdata = dev_get_platdata(&pdev->dev);
struct device *dev = &pdev->dev;
struct s3c_ide_info *info;
struct resource *res;
@@ -617,7 +617,7 @@ static int pata_s3c_resume(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct ata_host *host = platform_get_drvdata(pdev);
- struct s3c_ide_platdata *pdata = pdev->dev.platform_data;
+ struct s3c_ide_platdata *pdata = dev_get_platdata(&pdev->dev);
struct s3c_ide_info *info = host->private_data;
pata_s3c_hwinit(info, pdata);