aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-01-16 15:40:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-16 15:40:11 -0500
commitabcea859783f63c9140ebd9fcb69580d0832f2c8 (patch)
treeb769dd06a0fcf8e86849f31fd1f62358eb7209d0
parent4b48d9d44ebe0e8c31b4fe3b7480941576fff613 (diff)
parent009777846165fcc49352c0f1487e3a96102884c3 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: netxen: include ipv6.h (fixes build failure) netxen: avoid invalid iounmap
-rw-r--r--drivers/net/netxen/netxen_nic_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 86867405a367..d854f07ef4d3 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -41,6 +41,7 @@
41#include <linux/dma-mapping.h> 41#include <linux/dma-mapping.h>
42#include <linux/if_vlan.h> 42#include <linux/if_vlan.h>
43#include <net/ip.h> 43#include <net/ip.h>
44#include <linux/ipv6.h>
44 45
45MODULE_DESCRIPTION("NetXen Multi port (1/10) Gigabit Network Driver"); 46MODULE_DESCRIPTION("NetXen Multi port (1/10) Gigabit Network Driver");
46MODULE_LICENSE("GPL"); 47MODULE_LICENSE("GPL");
@@ -1004,8 +1005,10 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
1004 1005
1005 iounmap(adapter->ahw.db_base); 1006 iounmap(adapter->ahw.db_base);
1006 iounmap(adapter->ahw.pci_base0); 1007 iounmap(adapter->ahw.pci_base0);
1007 iounmap(adapter->ahw.pci_base1); 1008 if (adapter->ahw.pci_base1 != NULL)
1008 iounmap(adapter->ahw.pci_base2); 1009 iounmap(adapter->ahw.pci_base1);
1010 if (adapter->ahw.pci_base2 != NULL)
1011 iounmap(adapter->ahw.pci_base2);
1009 1012
1010 pci_release_regions(pdev); 1013 pci_release_regions(pdev);
1011 pci_disable_device(pdev); 1014 pci_disable_device(pdev);