diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 14:11:53 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-30 17:43:39 -0400 |
commit | 09a274805676239d52198503ad552537c1148aad (patch) | |
tree | 729087bcaa58f54c6a5e733dce84095903257fa5 /drivers/net/ethernet/cadence | |
parent | 1b0e53a8f9e67c5f41d873194af9877d32e19976 (diff) | |
download | linux-09a274805676239d52198503ad552537c1148aad.tar.bz2 |
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: Jingoo Han <jg1.han@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
-rw-r--r-- | drivers/net/ethernet/cadence/at91_ether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c index bb5d63fb2e6d..ce75de9bae9e 100644 --- a/drivers/net/ethernet/cadence/at91_ether.c +++ b/drivers/net/ethernet/cadence/at91_ether.c @@ -304,7 +304,7 @@ MODULE_DEVICE_TABLE(of, at91ether_dt_ids); /* Detect MAC & PHY and perform ethernet interface initialization */ 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 net_device *dev; struct phy_device *phydev; |