linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.10-rc2] ppc32: Call redwood5_platform_add_devices before driver init
@ 2005-03-31  0:10 Dale Farnsworth
  0 siblings, 0 replies; only message in thread
From: Dale Farnsworth @ 2005-03-31  0:10 UTC (permalink / raw)
  To: linuxppc-embedded

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@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

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

only message in thread, other threads:[~2005-03-31  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-31  0:10 [PATCH 2.6.10-rc2] ppc32: Call redwood5_platform_add_devices before driver init Dale Farnsworth

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