aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r--drivers/net/e1000/e1000_main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index fac82152e4c8..78a4250e004f 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -912,7 +912,6 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
912 u16 eeprom_data = 0; 912 u16 eeprom_data = 0;
913 u16 eeprom_apme_mask = E1000_EEPROM_APME; 913 u16 eeprom_apme_mask = E1000_EEPROM_APME;
914 int bars, need_ioport; 914 int bars, need_ioport;
915 DECLARE_MAC_BUF(mac);
916 915
917 /* do not allocate ioport bars when not needed */ 916 /* do not allocate ioport bars when not needed */
918 need_ioport = e1000_is_need_ioport(pdev); 917 need_ioport = e1000_is_need_ioport(pdev);
@@ -967,8 +966,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
967 hw->back = adapter; 966 hw->back = adapter;
968 967
969 err = -EIO; 968 err = -EIO;
970 hw->hw_addr = ioremap(pci_resource_start(pdev, BAR_0), 969 hw->hw_addr = pci_ioremap_bar(pdev, BAR_0);
971 pci_resource_len(pdev, BAR_0));
972 if (!hw->hw_addr) 970 if (!hw->hw_addr)
973 goto err_ioremap; 971 goto err_ioremap;
974 972
@@ -1016,9 +1014,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
1016 * because it depends on mac_type */ 1014 * because it depends on mac_type */
1017 if ((hw->mac_type == e1000_ich8lan) && 1015 if ((hw->mac_type == e1000_ich8lan) &&
1018 (pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) { 1016 (pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
1019 hw->flash_address = 1017 hw->flash_address = pci_ioremap_bar(pdev, 1);
1020 ioremap(pci_resource_start(pdev, 1),
1021 pci_resource_len(pdev, 1));
1022 if (!hw->flash_address) 1018 if (!hw->flash_address)
1023 goto err_flashmap; 1019 goto err_flashmap;
1024 } 1020 }
@@ -1194,7 +1190,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
1194 (hw->bus_width == e1000_bus_width_pciex_1) ? "Width x1" : 1190 (hw->bus_width == e1000_bus_width_pciex_1) ? "Width x1" :
1195 "32-bit")); 1191 "32-bit"));
1196 1192
1197 printk("%s\n", print_mac(mac, netdev->dev_addr)); 1193 printk("%pM\n", netdev->dev_addr);
1198 1194
1199 if (hw->bus_type == e1000_bus_type_pci_express) { 1195 if (hw->bus_type == e1000_bus_type_pci_express) {
1200 DPRINTK(PROBE, WARNING, "This device (id %04x:%04x) will no " 1196 DPRINTK(PROBE, WARNING, "This device (id %04x:%04x) will no "
@@ -4103,8 +4099,6 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
4103 netif_receive_skb(skb); 4099 netif_receive_skb(skb);
4104 } 4100 }
4105 4101
4106 netdev->last_rx = jiffies;
4107
4108next_desc: 4102next_desc:
4109 rx_desc->status = 0; 4103 rx_desc->status = 0;
4110 4104