summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-30 03:29:57 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-08-30 21:43:38 (GMT)
commit20e6f33bb2e8529b97d6bdbbc4a6d35799d43521 (patch)
tree6a0b68a8d9de0ac722ae63dc4b8580a2c0461047 /drivers/net/ethernet/ti
parenta0ea2ac8976772b9a38bbfddf01a86223d84b863 (diff)
downloadlinux-fsl-qoriq-20e6f33bb2e8529b97d6bdbbc4a6d35799d43521.tar.xz
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 <jg1.han@samsung.com> Acked-by: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r--drivers/net/ethernet/ti/davinci_emac.c2
1 files changed, 1 insertions, 1 deletions
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)