aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/mcp251x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c
index fe7dd696957e..08ac401e0214 100644
--- a/drivers/net/can/mcp251x.c
+++ b/drivers/net/can/mcp251x.c
@@ -999,7 +999,7 @@ static int mcp251x_can_probe(struct spi_device *spi)
999{ 999{
1000 struct net_device *net; 1000 struct net_device *net;
1001 struct mcp251x_priv *priv; 1001 struct mcp251x_priv *priv;
1002 struct mcp251x_platform_data *pdata = spi->dev.platform_data; 1002 struct mcp251x_platform_data *pdata = dev_get_platdata(&spi->dev);
1003 int ret = -ENODEV; 1003 int ret = -ENODEV;
1004 1004
1005 if (!pdata) 1005 if (!pdata)