From: David S. Miller Date: Mon, 20 Feb 2012 05:46:06 +0000 (-0500) Subject: ll_temac: Fix build. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=5277f7a6c2f322f11e8deed48530296d70bc5d5f;p=~shefty%2Frdma-dev.git ll_temac: Fix build. Reported-by: Stephen Rothwell Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index eb285418924..d21591a2c59 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);