summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 17:41:30 +0900
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 15:43:14 +0200
commit84ae6643d8bd2d6c9a4e313212bfe68e0abcab3f (patch)
tree8a1d0af53129f21a6c3965d66b0a272a730ca544
parente19f0305450a05076a236b62c11777c966d580a8 (diff)
downloadop-kernel-dev-84ae6643d8bd2d6c9a4e313212bfe68e0abcab3f.zip
op-kernel-dev-84ae6643d8bd2d6c9a4e313212bfe68e0abcab3f.tar.gz
can: flexcan: 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/flexcan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 71c677e..e8c46bd 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -1074,7 +1074,7 @@ static int flexcan_probe(struct platform_device *pdev)
priv->dev = dev;
priv->clk_ipg = clk_ipg;
priv->clk_per = clk_per;
- priv->pdata = pdev->dev.platform_data;
+ priv->pdata = dev_get_platdata(&pdev->dev);
priv->devtype_data = devtype_data;
priv->reg_xceiver = devm_regulator_get(&pdev->dev, "xceiver");
OpenPOWER on IntegriCloud