From: Doug Maxey <dwm@xxxxxxxxxxx> - use the current pci_register_driver(). - change order of calls in module_exit(). Signed-off-by: Doug Maxey <dwm@xxxxxxxxxxx> --- drivers/scsi/qla4xxx/ql4_os.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index fdba30a..087944a 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -1821,11 +1821,11 @@ static int __init qla4xxx_module_init(vo goto release_srb_cache; } - printk(KERN_INFO "QLogic iSCSI HBA Driver\n"); - ret = pci_module_init(&qla4xxx_pci_driver); + ret = pci_register_driver(&qla4xxx_pci_driver); if (ret) goto unregister_transport; + printk(KERN_INFO "QLogic iSCSI HBA Driver\n"); return 0; unregister_transport: @@ -1839,8 +1839,8 @@ no_srp_cache: static void __exit qla4xxx_module_exit(void) { pci_unregister_driver(&qla4xxx_pci_driver); - kmem_cache_destroy(srb_cachep); iscsi_unregister_transport(&qla4xxx_iscsi_transport); + kmem_cache_destroy(srb_cachep); } module_init(qla4xxx_module_init); - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html