summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 12:40:42 +0400
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 17:43:13 +0400
commit321165c3e703db177fb3324939fc6c3872d22fce (patch)
tree60d6c8c7a7459544265cb5e53b4fb149ad35aa55
parent6cbdb91821afecc05dfd591f26c8e247b8e6ac56 (diff)
downloadlinux-321165c3e703db177fb3324939fc6c3872d22fce.tar.xz
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>
-rw-r--r--drivers/net/can/bfin_can.c2
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)
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;