linux-2.4.9/drivers/block/genhd.c calls fusion_init, but
fusion_init is again called unconditionally due to the
module_init() call at the end of drivers/message/fusion/mptbase.c.
The only effect of the second call is to possibly generate a printk,
since the fusion driver has code to protect against this case. However,
the fusion driver also has code that automatically calls fusion_init
if mpt_register is called before fusion_init, so there does not
seem to be a need to an early call in drivers/block/genhd.c.
So, the following patch removes the unnecessary call
from genhd.c. I believe no changes to the fusion driver or
the initialization order in linux/Makefile are necessary.
By the way, this is a fake patch. The kernel that I am
actually using has no drivers/block/genhd.c anymore, since I
have eliminating all of its calls.
Steven: could you please comment on this patch? If you
see no problems with it, I would like to ask Alan and Linus to
integrate it into their kernels (or you can do so, or we can
follow whatever procedure you prefer). Please let me know.
Thanks in advance.
-- Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 adam@yggdrasil.com \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America fax +1 408 261-6631 "Free Software For The Rest Of Us." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:38 EST