mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 05:16:44 +07:00
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>
This commit is contained in:
parent
1b0e53a8f9
commit
09a2748056
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user