diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 10:16:05 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-30 14:59:24 +0200 |
commit | 61b8c345aa8c50c6a99a90560a107d02124f0293 (patch) | |
tree | 7e7c8cd598333b4f1c7deb817af07af38f1f45be /drivers/ata/pata_at91.c | |
parent | sata_mv: Remove unneeded forward declaration (diff) | |
download | linux-61b8c345aa8c50c6a99a90560a107d02124f0293.tar.xz linux-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_at91.c')
-rw-r--r-- | drivers/ata/pata_at91.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c index 5364f97b42c6..d63ee8f41a4f 100644 --- a/drivers/ata/pata_at91.c +++ b/drivers/ata/pata_at91.c @@ -315,7 +315,7 @@ static struct ata_port_operations pata_at91_port_ops = { static int pata_at91_probe(struct platform_device *pdev) { - struct at91_cf_data *board = pdev->dev.platform_data; + struct at91_cf_data *board = dev_get_platdata(&pdev->dev); struct device *dev = &pdev->dev; struct at91_ide_info *info; struct resource *mem_res; |