diff options
author | Amit S. Kale <amitkale@netxen.com> | 2007-02-21 09:37:06 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-27 04:16:04 -0500 |
commit | 9de06610669b2f7b9c2ba6f0a849b70aa91b2edb (patch) | |
tree | aa06ef37514d8023bc5eac3b2aa33c8123b77b6f | |
parent | fa302484218e4043f4502de2f64a69f87101c78e (diff) |
NetXen: Driver unload fixes
Signed-off-by: Amit S. Kale <amitkale@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 9 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index 7195af3e8f3..deec796f90d 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -242,10 +242,11 @@ int netxen_nic_hw_resources(struct netxen_adapter *adapter) | |||
242 | adapter->cmd_consumer = (uint32_t *) (((char *)addr) + | 242 | adapter->cmd_consumer = (uint32_t *) (((char *)addr) + |
243 | sizeof(struct netxen_ring_ctx)); | 243 | sizeof(struct netxen_ring_ctx)); |
244 | 244 | ||
245 | addr = pci_alloc_consistent(adapter->ahw.pdev, | 245 | addr = netxen_alloc(adapter->ahw.pdev, |
246 | sizeof(struct cmd_desc_type0) * | 246 | sizeof(struct cmd_desc_type0) * |
247 | adapter->max_tx_desc_count, | 247 | adapter->max_tx_desc_count, |
248 | (dma_addr_t *) & hw->cmd_desc_phys_addr); | 248 | (dma_addr_t *) & hw->cmd_desc_phys_addr, |
249 | &adapter->ahw.cmd_desc_pdev); | ||
249 | printk("cmd_desc_phys_addr: 0x%llx\n", (u64) hw->cmd_desc_phys_addr); | 250 | printk("cmd_desc_phys_addr: 0x%llx\n", (u64) hw->cmd_desc_phys_addr); |
250 | 251 | ||
251 | if (addr == NULL) { | 252 | if (addr == NULL) { |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 225ff55527c..b2fc2bccc39 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -1155,8 +1155,8 @@ static void __exit netxen_exit_module(void) | |||
1155 | /* | 1155 | /* |
1156 | * Wait for some time to allow the dma to drain, if any. | 1156 | * Wait for some time to allow the dma to drain, if any. |
1157 | */ | 1157 | */ |
1158 | destroy_workqueue(netxen_workq); | ||
1159 | pci_unregister_driver(&netxen_driver); | 1158 | pci_unregister_driver(&netxen_driver); |
1159 | destroy_workqueue(netxen_workq); | ||
1160 | } | 1160 | } |
1161 | 1161 | ||
1162 | module_exit(netxen_exit_module); | 1162 | module_exit(netxen_exit_module); |