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>
This commit is contained in:
Jingoo Han
2013-07-30 17:16:05 +09:00
committed by Tejun Heo
parent e8038ebbd5
commit 61b8c345aa
8 changed files with 10 additions and 10 deletions

View File

@@ -271,7 +271,7 @@ static int __init pata_at32_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct at32_ide_info *info;
struct ide_platform_data *board = pdev->dev.platform_data;
struct ide_platform_data *board = dev_get_platdata(&pdev->dev);
struct resource *res;
int irq;