diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 04:42:19 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 09:43:14 -0400 |
commit | 369566ef13c70ba368e370cf3df42df7ebc51e66 (patch) | |
tree | bc44ac56360cc227ed888b23f9764c8d928c84a5 /drivers/net/can | |
parent | c91a319c58e23b0b0a582c2d7824219d1120a92d (diff) |
can: mcp251x: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/mcp251x.c | 2 |
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) |