Commit 09a27480 authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller

net: at91_ether: 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: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b0e53a8
...@@ -304,7 +304,7 @@ MODULE_DEVICE_TABLE(of, at91ether_dt_ids); ...@@ -304,7 +304,7 @@ MODULE_DEVICE_TABLE(of, at91ether_dt_ids);
/* Detect MAC & PHY and perform ethernet interface initialization */ /* Detect MAC & PHY and perform ethernet interface initialization */
static int __init at91ether_probe(struct platform_device *pdev) static int __init at91ether_probe(struct platform_device *pdev)
{ {
struct macb_platform_data *board_data = pdev->dev.platform_data; struct macb_platform_data *board_data = dev_get_platdata(&pdev->dev);
struct resource *regs; struct resource *regs;
struct net_device *dev; struct net_device *dev;
struct phy_device *phydev; struct phy_device *phydev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment