aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/r8169.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index bdae2c59a750..c821da21d8eb 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -2154,6 +2154,8 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2154 2154
2155 spin_lock_init(&tp->lock); 2155 spin_lock_init(&tp->lock);
2156 2156
2157 tp->mmio_addr = ioaddr;
2158
2157 rtl_init_mac_address(tp, ioaddr); 2159 rtl_init_mac_address(tp, ioaddr);
2158 2160
2159 /* Get MAC address */ 2161 /* Get MAC address */
@@ -2186,7 +2188,6 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2186#endif 2188#endif
2187 2189
2188 tp->intr_mask = 0xffff; 2190 tp->intr_mask = 0xffff;
2189 tp->mmio_addr = ioaddr;
2190 tp->align = cfg->align; 2191 tp->align = cfg->align;
2191 tp->hw_start = cfg->hw_start; 2192 tp->hw_start = cfg->hw_start;
2192 tp->intr_event = cfg->intr_event; 2193 tp->intr_event = cfg->intr_event;