aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ethoc.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2012-12-31 22:30:15 -0500
committerDavid S. Miller <davem@davemloft.net>2013-01-04 01:37:35 -0500
commite41b2d7fe7803e85e1202d0eb172717d7bf1bbaf (patch)
treeb389816be4d8a0d465afe8f18c8beecd1bd77834 /drivers/net/ethernet/ethoc.c
parentf652151640344f8faee21fcf702b4fd46b8fe70b (diff)
net: set dev->addr_assign_type correctly
Not a bitfield, but a plain value. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ethoc.c')
-rw-r--r--drivers/net/ethernet/ethoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 8db1c06008de..f380bb7653dd 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -1068,7 +1068,7 @@ static int ethoc_probe(struct platform_device *pdev)
1068 } 1068 }
1069 1069
1070 if (random_mac) 1070 if (random_mac)
1071 netdev->addr_assign_type |= NET_ADDR_RANDOM; 1071 netdev->addr_assign_type = NET_ADDR_RANDOM;
1072 1072
1073 /* register MII bus */ 1073 /* register MII bus */
1074 priv->mdio = mdiobus_alloc(); 1074 priv->mdio = mdiobus_alloc();