Skip to content

Commit 8eb86fc

Browse files
kuba-moodavem330
authored andcommitted
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: adeef3e ("net: constify netdev->dev_addr") Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5518c52 commit 8eb86fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/seeq/ether3.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
749749
const struct ether3_data *data = id->data;
750750
struct net_device *dev;
751751
int bus_type, ret;
752+
u8 addr[ETH_ALEN];
752753

753754
ether3_banner();
754755

@@ -776,7 +777,8 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
776777
priv(dev)->seeq = priv(dev)->base + data->base_offset;
777778
dev->irq = ec->irq;
778779

779-
ether3_addr(dev->dev_addr, ec);
780+
ether3_addr(addr, ec);
781+
eth_hw_addr_set(dev, addr);
780782

781783
priv(dev)->dev = dev;
782784
timer_setup(&priv(dev)->timer, ether3_ledoff, 0);

0 commit comments

Comments
 (0)