提交 9de06610 编写于 作者: A Amit S. Kale 提交者: Jeff Garzik

NetXen: Driver unload fixes

Signed-off-by: NAmit S. Kale <amitkale@netxen.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 fa302484
...@@ -242,10 +242,11 @@ int netxen_nic_hw_resources(struct netxen_adapter *adapter) ...@@ -242,10 +242,11 @@ int netxen_nic_hw_resources(struct netxen_adapter *adapter)
adapter->cmd_consumer = (uint32_t *) (((char *)addr) + adapter->cmd_consumer = (uint32_t *) (((char *)addr) +
sizeof(struct netxen_ring_ctx)); sizeof(struct netxen_ring_ctx));
addr = pci_alloc_consistent(adapter->ahw.pdev, addr = netxen_alloc(adapter->ahw.pdev,
sizeof(struct cmd_desc_type0) * sizeof(struct cmd_desc_type0) *
adapter->max_tx_desc_count, adapter->max_tx_desc_count,
(dma_addr_t *) & hw->cmd_desc_phys_addr); (dma_addr_t *) & hw->cmd_desc_phys_addr,
&adapter->ahw.cmd_desc_pdev);
printk("cmd_desc_phys_addr: 0x%llx\n", (u64) hw->cmd_desc_phys_addr); printk("cmd_desc_phys_addr: 0x%llx\n", (u64) hw->cmd_desc_phys_addr);
if (addr == NULL) { if (addr == NULL) {
......
...@@ -1155,8 +1155,8 @@ static void __exit netxen_exit_module(void) ...@@ -1155,8 +1155,8 @@ static void __exit netxen_exit_module(void)
/* /*
* Wait for some time to allow the dma to drain, if any. * Wait for some time to allow the dma to drain, if any.
*/ */
destroy_workqueue(netxen_workq);
pci_unregister_driver(&netxen_driver); pci_unregister_driver(&netxen_driver);
destroy_workqueue(netxen_workq);
} }
module_exit(netxen_exit_module); module_exit(netxen_exit_module);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册