diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 17:41:30 +0900 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 15:43:14 +0200 |
commit | 84ae6643d8bd2d6c9a4e313212bfe68e0abcab3f (patch) | |
tree | 8a1d0af53129f21a6c3965d66b0a272a730ca544 /drivers/net/can | |
parent | e19f0305450a05076a236b62c11777c966d580a8 (diff) |
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>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/flexcan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 71c677e651d..e8c46bda07f 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"); |