diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 04:40:42 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 09:43:13 -0400 |
commit | 321165c3e703db177fb3324939fc6c3872d22fce (patch) | |
tree | 60d6c8c7a7459544265cb5e53b4fb149ad35aa55 /drivers/net/can | |
parent | 6cbdb91821afecc05dfd591f26c8e247b8e6ac56 (diff) |
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')
-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 a2700d25ff0e..8a0b515b33ea 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) | |||
539 | struct resource *res_mem, *rx_irq, *tx_irq, *err_irq; | 539 | struct resource *res_mem, *rx_irq, *tx_irq, *err_irq; |
540 | unsigned short *pdata; | 540 | unsigned short *pdata; |
541 | 541 | ||
542 | pdata = pdev->dev.platform_data; | 542 | pdata = dev_get_platdata(&pdev->dev); |
543 | if (!pdata) { | 543 | if (!pdata) { |
544 | dev_err(&pdev->dev, "No platform data provided!\n"); | 544 | dev_err(&pdev->dev, "No platform data provided!\n"); |
545 | err = -EINVAL; | 545 | err = -EINVAL; |