diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 17:40:42 +0900 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 15:43:13 +0200 |
commit | 321165c3e703db177fb3324939fc6c3872d22fce (patch) | |
tree | 60d6c8c7a7459544265cb5e53b4fb149ad35aa55 /drivers/net/can/bfin_can.c | |
parent | 6cbdb91821afecc05dfd591f26c8e247b8e6ac56 (diff) | |
download | op-kernel-dev-321165c3e703db177fb3324939fc6c3872d22fce.zip op-kernel-dev-321165c3e703db177fb3324939fc6c3872d22fce.tar.gz |
can: bfin_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/bfin_can.c')
-rw-r--r-- | drivers/net/can/bfin_can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/bfin_can.c b/drivers/net/can/bfin_can.c index a2700d2..8a0b515 100644 --- a/drivers/net/can/bfin_can.c +++ b/drivers/net/can/bfin_can.c @@ -539,7 +539,7 @@ static int bfin_can_probe(struct platform_device *pdev) struct resource *res_mem, *rx_irq, *tx_irq, *err_irq; unsigned short *pdata; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); if (!pdata) { dev_err(&pdev->dev, "No platform data provided!\n"); err = -EINVAL; |