* [PATCH] kill FusionInitCalled
@ 2004-10-02 8:11 Christoph Hellwig
2004-10-21 9:21 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2004-10-02 8:11 UTC (permalink / raw)
To: Emoore; +Cc: linux-scsi
the scsi early init problem is long gone, so no need to work around it
anymore.
--- 1.33/drivers/message/fusion/mptbase.c 2004-09-29 04:47:31 +02:00
+++ edited/drivers/message/fusion/mptbase.c 2004-10-01 12:02:37 +02:00
@@ -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 =====
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kill FusionInitCalled
2004-10-02 8:11 [PATCH] kill FusionInitCalled Christoph Hellwig
@ 2004-10-21 9:21 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2004-10-21 9:21 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Emoore, linux-scsi
On Sat, Oct 02, 2004 at 10:11:48AM +0200, Christoph Hellwig wrote:
> the scsi early init problem is long gone, so no need to work around it
> anymore.
ping?
>
>
>
> --- 1.33/drivers/message/fusion/mptbase.c 2004-09-29 04:47:31 +02:00
> +++ edited/drivers/message/fusion/mptbase.c 2004-10-01 12:02:37 +02:00
> @@ -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 =====
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-21 9:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-02 8:11 [PATCH] kill FusionInitCalled Christoph Hellwig
2004-10-21 9:21 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).