diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index 7f8514384863..4ec92659a100 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c | |||
@@ -314,7 +314,7 @@ static int davinci_mdio_probe_dt(struct mdio_platform_data *data, | |||
314 | 314 | ||
315 | static int davinci_mdio_probe(struct platform_device *pdev) | 315 | static int davinci_mdio_probe(struct platform_device *pdev) |
316 | { | 316 | { |
317 | struct mdio_platform_data *pdata = pdev->dev.platform_data; | 317 | struct mdio_platform_data *pdata = dev_get_platdata(&pdev->dev); |
318 | struct device *dev = &pdev->dev; | 318 | struct device *dev = &pdev->dev; |
319 | struct davinci_mdio_data *data; | 319 | struct davinci_mdio_data *data; |
320 | struct resource *res; | 320 | struct resource *res; |