aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/ti_hecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can/ti_hecc.c')
-rw-r--r--drivers/net/can/ti_hecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c
index 3a349a22d5bc..beb5ef834f0f 100644
--- a/drivers/net/can/ti_hecc.c
+++ b/drivers/net/can/ti_hecc.c
@@ -894,7 +894,7 @@ static int ti_hecc_probe(struct platform_device *pdev)
894 void __iomem *addr; 894 void __iomem *addr;
895 int err = -ENODEV; 895 int err = -ENODEV;
896 896
897 pdata = pdev->dev.platform_data; 897 pdata = dev_get_platdata(&pdev->dev);
898 if (!pdata) { 898 if (!pdata) {
899 dev_err(&pdev->dev, "No platform data\n"); 899 dev_err(&pdev->dev, "No platform data\n");
900 goto probe_exit; 900 goto probe_exit;