We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7333f9 commit 878716dCopy full SHA for 878716d
drivers/net/ethernet/cirrus/ep93xx_eth.c
@@ -771,6 +771,7 @@ static int ep93xx_eth_probe(struct platform_device *pdev)
771
struct resource *mem;
772
void __iomem *base_addr;
773
struct device_node *np;
774
+ u8 addr[ETH_ALEN];
775
u32 phy_id;
776
int irq;
777
int err;
@@ -802,7 +803,8 @@ static int ep93xx_eth_probe(struct platform_device *pdev)
802
803
goto err_out;
804
}
805
- eth_hw_addr_set(dev, base_addr + 0x50);
806
+ memcpy_fromio(addr, base_addr + 0x50, ETH_ALEN);
807
+ eth_hw_addr_set(dev, addr);
808
dev->ethtool_ops = &ep93xx_ethtool_ops;
809
dev->netdev_ops = &ep93xx_netdev_ops;
810
dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM;
0 commit comments