From: Jingoo Han Date: Fri, 30 Aug 2013 03:29:57 +0000 (+0900) Subject: net: davinci_emac: use dev_get_platdata() X-Git-Tag: upstream/snapshot3+hdmi~4422^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20e6f33bb2e8529b97d6bdbbc4a6d35799d43521;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git net: davinci_emac: 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 Acked-by: Mugunthan V N Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 1a222bce..67df09e 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c @@ -1761,7 +1761,7 @@ davinci_emac_of_get_pdata(struct platform_device *pdev, struct emac_priv *priv) const u8 *mac_addr; if (!IS_ENABLED(CONFIG_OF) || !pdev->dev.of_node) - return pdev->dev.platform_data; + return dev_get_platdata(&pdev->dev); pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); if (!pdata)