]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
e1000e: fix warn_on reload after phy_id error
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 14 Nov 2008 06:45:07 +0000 (06:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Nov 2008 03:05:02 +0000 (19:05 -0800)
If the driver fails to initialize the first time due to the failure in the
phy_id check the kernel triggers a warn_on on the second try to load the
driver because the driver did not free the msi/x resources in the first
load because of the previous failure in phy_id check.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/netdev.c

index 2c8dffdc889f2a32f4212f6b2d603b667cd5f074..f6ebebb8cfa5102275e85d217f83d0a22a63bc89 100644 (file)
@@ -5009,6 +5009,7 @@ err_hw_init:
 err_sw_init:
        if (adapter->hw.flash_address)
                iounmap(adapter->hw.flash_address);
+       e1000e_reset_interrupt_capability(adapter);
 err_flashmap:
        iounmap(adapter->hw.hw_addr);
 err_ioremap: