linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: run late loaded ide modules
@ 2003-07-14 12:18 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-14 12:18 UTC (permalink / raw)
  To: linux-kernel, marcelo

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/drivers/ide/ide.c linux.22-pre5-ac1/drivers/ide/ide.c
--- linux.22-pre5/drivers/ide/ide.c	2003-07-14 12:27:35.000000000 +0100
+++ linux.22-pre5-ac1/drivers/ide/ide.c	2003-07-09 13:07:39.000000000 +0100
@@ -2221,6 +2221,7 @@
  */
 
 static __initdata ide_driver_call ide_scan[NUM_DRIVER];
+static int drivers_run = 0;
 
 void __init ide_register_driver(ide_driver_call scan)
 {
@@ -2228,6 +2229,11 @@
 	if(ide_scans == NUM_DRIVER)
 		panic("Too many IDE drivers");
 	ide_scan[ide_scans++]=scan;
+	if(drivers_run)
+	{
+		printk(KERN_ERR "ide: late registration of driver.\n");
+		scan();
+	}
 }
 
 EXPORT_SYMBOL(ide_register_driver);
@@ -2240,6 +2246,7 @@
 		(ide_scan[i])();
 		i++;
 	}
+	drivers_run = 1;
 }
 
 /*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-14 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 12:18 PATCH: run late loaded ide modules Alan Cox

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).