From: "Dale Farnsworth" <dale@farnsworth.org>
To: linuxppc-embedded@ozlabs.org
Subject: [PATCH 2.6.10-rc2] ppc32: Call redwood5_platform_add_devices before driver init
Date: Wed, 30 Mar 2005 17:10:21 -0700	[thread overview]
Message-ID: <20050331001021.GB22041@xyzzy> (raw)
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
                 reply	other threads:[~2005-03-31  0:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=20050331001021.GB22041@xyzzy \
    --to=dale@farnsworth.org \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
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).