kill FusionInitCalled
Subsystems (2)
PATCH 1/1 kill FusionInitCalled
the scsi early init problem is long gone, so no need to work around it anymore.
drivers/message/fusion/mptbase.c +0 -22
@@ -155,7 +155,6 @@static MPT_RESETHANDLER MptResetHandlers[MPT_MAX_PROTOCOL_DRIVERS ];static struct mpt_pci_driver *MptDeviceDriverHandlers[MPT_MAX_PROTOCOL_DRIVERS ]; -static int FusionInitCalled =0 ;static int mpt_base_index =-1 ;static int last_drv_idx =-1 ;
@@ -603,22 +602,6 @@ last_drv_idx =-1 ; -#ifndef MODULE -/* -* Handle possibility of the mptscsih_detect() routine getting -* called *before* fusion_init! -*/ -if (!FusionInitCalled) { - dprintk((KERN_INFO MYNAM ": Hmmm, calling fusion_init from mpt_register!\n")); -/* -* NOTE! We'll get recursion here, as fusion_init() -* calls mpt_register()! -*/ -fusion_init (); - FusionInitCalled++; - } -#endif -/* * Search for empty callback slot in this order: {N,...,7,6,5,...,1} * (slot/handle 0 is reserved!)
@@ -5933,11 +5916,6 @@ {int i;int r; - -if (FusionInitCalled++) { - dprintk((KERN_INFO MYNAM ": INFO - Driver late-init entry point called\n")); -return 0 ; - }show_mptmod_ver (my_NAME, my_VERSION); printk(KERN_INFO COPYRIGHT "\n");
===== drivers/message/fusion/mptscsih.c 1.50 vs edited =====
Quoted 2 lines · Christoph Hellwig
the scsi early init problem is long gone, so no need to work around it anymore.
ping?
Quoted 48 lines
drivers/message/fusion/mptbase.c +0
-22@@ -155,7 +155,6 @@static MPT_RESETHANDLER MptResetHandlers[MPT_MAX_PROTOCOL_DRIVERS ];static struct mpt_pci_driver *MptDeviceDriverHandlers[MPT_MAX_PROTOCOL_DRIVERS ]; -static int FusionInitCalled =0 ;static int mpt_base_index =-1 ;static int last_drv_idx =-1 ;@@ -603,22 +602,6 @@ last_drv_idx =-1 ; -#ifndef MODULE -/* -* Handle possibility of the mptscsih_detect() routine getting -* called *before* fusion_init! -*/ -if (!FusionInitCalled) { - dprintk((KERN_INFO MYNAM ": Hmmm, calling fusion_init from mpt_register!\n")); -/* -* NOTE! We'll get recursion here, as fusion_init() -* calls mpt_register()! -*/ -fusion_init (); - FusionInitCalled++; - } -#endif -/* * Search for empty callback slot in this order: {N,...,7,6,5,...,1} * (slot/handle 0 is reserved!) @@ -5933,11 +5916,6 @@ {int i;int r; - -if (FusionInitCalled++) { - dprintk((KERN_INFO MYNAM ": INFO - Driver late-init entry point called\n")); -return 0 ; - }show_mptmod_ver (my_NAME, my_VERSION); printk(KERN_INFO COPYRIGHT "\n");
Quoted 5 lines
=====
drivers/message/fusion/mptscsih.c1.50 vs edited ===== -
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---