ethernet: seeq/ether3: don't write directly to netdev->dev_addr
netdev->dev_addr is const now. Compile tested rpc_defconfig w/ GCC 8.5. Fixes: adeef3e32146 ("net: constify netdev->dev_addr") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5518c5246b
commit
8eb86fc2f4
@ -749,6 +749,7 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||||||
const struct ether3_data *data = id->data;
|
const struct ether3_data *data = id->data;
|
||||||
struct net_device *dev;
|
struct net_device *dev;
|
||||||
int bus_type, ret;
|
int bus_type, ret;
|
||||||
|
u8 addr[ETH_ALEN];
|
||||||
|
|
||||||
ether3_banner();
|
ether3_banner();
|
||||||
|
|
||||||
@ -776,7 +777,8 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||||||
priv(dev)->seeq = priv(dev)->base + data->base_offset;
|
priv(dev)->seeq = priv(dev)->base + data->base_offset;
|
||||||
dev->irq = ec->irq;
|
dev->irq = ec->irq;
|
||||||
|
|
||||||
ether3_addr(dev->dev_addr, ec);
|
ether3_addr(addr, ec);
|
||||||
|
eth_hw_addr_set(dev, addr);
|
||||||
|
|
||||||
priv(dev)->dev = dev;
|
priv(dev)->dev = dev;
|
||||||
timer_setup(&priv(dev)->timer, ether3_ledoff, 0);
|
timer_setup(&priv(dev)->timer, ether3_ledoff, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user