diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/cxgb3/t3_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index 870d44992c7..e78d341cbd6 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c | |||
@@ -3682,6 +3682,8 @@ static void mc7_prep(struct adapter *adapter, struct mc7 *mc7, | |||
3682 | void mac_prep(struct cmac *mac, struct adapter *adapter, int index) | 3682 | void mac_prep(struct cmac *mac, struct adapter *adapter, int index) |
3683 | { | 3683 | { |
3684 | mac->adapter = adapter; | 3684 | mac->adapter = adapter; |
3685 | if (!adapter->params.vpd.xauicfg[1]) | ||
3686 | index = 0; | ||
3685 | mac->offset = (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR) * index; | 3687 | mac->offset = (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR) * index; |
3686 | mac->nucast = 1; | 3688 | mac->nucast = 1; |
3687 | 3689 | ||