[PATCH 2.6.10-rc2] ppc32: Call redwood5_platform_add_devices before driver init

Dale Farnsworth dale at farnsworth.org
Thu Mar 31 10:10:21 EST 2005


Use arch_initcall to call redwood5_platform_add_devices, ensuring
that platform_add_devices is called before drivers are initialized.

Signed-off-by: Dale Farnsworth <dale at farnsworth.org>

Index: linux-2.5-usb-405/arch/ppc/platforms/4xx/redwood5.c
===================================================================
--- linux-2.5-usb-405.orig/arch/ppc/platforms/4xx/redwood5.c
+++ linux-2.5-usb-405/arch/ppc/platforms/4xx/redwood5.c
@@ -48,6 +48,7 @@
 {
 	return platform_add_devices(redwood5_devs, ARRAY_SIZE(redwood5_devs));
 }
+arch_initcall(redwood5_platform_add_devices);
 
 void __init
 redwood5_setup_arch(void)
@@ -76,7 +77,6 @@
 
 	printk("\n");
 #endif
-	device_initcall(redwood5_platform_add_devices);
 }
 
 void __init



More information about the Linuxppc-embedded mailing list