From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: Controlling Driver Load Order Date: Thu, 27 May 2010 06:13:58 +0200 Message-ID: <20100527041358.GA14070@pengutronix.de> References: <20100526235246.GA31068@pengutronix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Robert Emanuele Cc: Linus Walleij , linux-arm-kernel , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org List-Id: linux-i2c@vger.kernel.org --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 26, 2010 at 06:39:13PM -0700, Robert Emanuele wrote: > Still the framebuffer device would initialize first and it would lack > having the i2c chips it needs ready. That is the order I'm trying to > straighten out. Understood. Our pointers were probably not precise enough, sorry. Please try this patch and give a Tested-by-tag if it solves your problems. =46rom: Wolfram Sang Date: Thu, 27 May 2010 06:03:48 +0200 Subject: [PATCH] i2c-at91: use subsys_initcall() for early initialization I2C needs to be available early, so other subsystems can access it. Signed-off-by: Wolfram Sang Cc: Robert Emanuele Cc: Ben Dooks --- drivers/i2c/busses/i2c-at91.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 305c075..bea5794 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c @@ -313,13 +313,12 @@ static int __init at91_i2c_init(void) { return platform_driver_register(&at91_i2c_driver); } +subsys_initcall(at91_i2c_init); =20 static void __exit at91_i2c_exit(void) { platform_driver_unregister(&at91_i2c_driver); } - -module_init(at91_i2c_init); module_exit(at91_i2c_exit); =20 MODULE_AUTHOR("Rick Bronson"); --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkv98YYACgkQD27XaX1/VRsvlwCffUOH2qAsWbaG2EmIf1Cl2H+I 8P4AoInnCS69XCfq6wIFku1hUgeT8hlG =vGcD -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--