summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_at32.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_at32.c')
-rw-r--r--drivers/ata/pata_at32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c
index 8d493b4a0961..d59d5239405f 100644
--- a/drivers/ata/pata_at32.c
+++ b/drivers/ata/pata_at32.c
@@ -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;