summaryrefslogtreecommitdiff
path: root/drivers/net/can/at91_can.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 08:40:09 (GMT)
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 13:43:13 (GMT)
commit6cbdb91821afecc05dfd591f26c8e247b8e6ac56 (patch)
treece9570fc761db3f1aaa9ef09b351311e5f4fe3a7 /drivers/net/can/at91_can.c
parent1c2da13c21a14e9db99c701412ac9069d5b91cf5 (diff)
downloadlinux-6cbdb91821afecc05dfd591f26c8e247b8e6ac56.tar.xz
can: at91_can: 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/at91_can.c')
-rw-r--r--drivers/net/can/at91_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c
index 3b1ff61..64f2efa 100644
--- a/drivers/net/can/at91_can.c
+++ b/drivers/net/can/at91_can.c
@@ -1347,7 +1347,7 @@ static int at91_can_probe(struct platform_device *pdev)
priv->reg_base = addr;
priv->devtype_data = *devtype_data;
priv->clk = clk;
- priv->pdata = pdev->dev.platform_data;
+ priv->pdata = dev_get_platdata(&pdev->dev);
priv->mb0_id = 0x7ff;
netif_napi_add(dev, &priv->napi, at91_poll, get_mb_rx_num(priv));