diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 12:40:09 +0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 17:43:13 +0400 |
commit | 6cbdb91821afecc05dfd591f26c8e247b8e6ac56 (patch) | |
tree | ce9570fc761db3f1aaa9ef09b351311e5f4fe3a7 /drivers/net/can/at91_can.c | |
parent | 1c2da13c21a14e9db99c701412ac9069d5b91cf5 (diff) | |
download | linux-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 3b1ff6148702..64f2efaf7638 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)); |