summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/mcp251x.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 10:42:19 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 15:43:14 +0200
commit369566ef13c70ba368e370cf3df42df7ebc51e66 (patch)
treebc44ac56360cc227ed888b23f9764c8d928c84a5 /drivers/net/can/mcp251x.c
parentcan: janz-ican3: use dev_get_platdata() (diff)
downloadlinux-369566ef13c70ba368e370cf3df42df7ebc51e66.tar.xz
linux-369566ef13c70ba368e370cf3df42df7ebc51e66.zip
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/mcp251x.c')
-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)
{
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)