diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 08:42:19 (GMT) |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 13:43:14 (GMT) |
commit | 369566ef13c70ba368e370cf3df42df7ebc51e66 (patch) | |
tree | bc44ac56360cc227ed888b23f9764c8d928c84a5 | |
parent | c91a319c58e23b0b0a582c2d7824219d1120a92d (diff) | |
download | linux-fsl-qoriq-369566ef13c70ba368e370cf3df42df7ebc51e66.tar.xz |
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>
-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 fe7dd69..08ac401 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) { struct net_device *net; struct mcp251x_priv *priv; - struct mcp251x_platform_data *pdata = spi->dev.platform_data; + struct mcp251x_platform_data *pdata = dev_get_platdata(&spi->dev); int ret = -ENODEV; if (!pdata) |