summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/xilinx/ll_temac_main.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-02-20 09:46:06 +0400
committerDavid S. Miller <davem@davemloft.net>2012-02-20 09:46:06 +0400
commit5277f7a6c2f322f11e8deed48530296d70bc5d5f (patch)
tree2eeaee34bef851c8eb21f8e6eb69887628dc26e3 /drivers/net/ethernet/xilinx/ll_temac_main.c
parent5055d2f236e1495d68c468eeb684fd5789673f1d (diff)
downloadlinux-5277f7a6c2f322f11e8deed48530296d70bc5d5f.tar.xz
ll_temac: Fix build.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/ll_temac_main.c')
-rw-r--r--drivers/net/ethernet/xilinx/ll_temac_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index eb285418924e..d21591a2c593 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -329,7 +329,7 @@ static int temac_set_mac_address(struct net_device *ndev, void *address)
if (!is_valid_ether_addr(ndev->dev_addr))
eth_hw_addr_random(ndev);
else
- dev->addr_assign_type &= ~NET_ADDR_RANDOM;
+ ndev->addr_assign_type &= ~NET_ADDR_RANDOM;
/* set up unicast MAC address filter set its mac address */
mutex_lock(&lp->indirect_mutex);