diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 04:40:09 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 09:43:13 -0400 |
commit | 6cbdb91821afecc05dfd591f26c8e247b8e6ac56 (patch) | |
tree | ce9570fc761db3f1aaa9ef09b351311e5f4fe3a7 /drivers/net/can | |
parent | 1c2da13c21a14e9db99c701412ac9069d5b91cf5 (diff) |
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')
-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) | |||
1347 | priv->reg_base = addr; | 1347 | priv->reg_base = addr; |
1348 | priv->devtype_data = *devtype_data; | 1348 | priv->devtype_data = *devtype_data; |
1349 | priv->clk = clk; | 1349 | priv->clk = clk; |
1350 | priv->pdata = pdev->dev.platform_data; | 1350 | priv->pdata = dev_get_platdata(&pdev->dev); |
1351 | priv->mb0_id = 0x7ff; | 1351 | priv->mb0_id = 0x7ff; |
1352 | 1352 | ||
1353 | netif_napi_add(dev, &priv->napi, at91_poll, get_mb_rx_num(priv)); | 1353 | netif_napi_add(dev, &priv->napi, at91_poll, get_mb_rx_num(priv)); |