From 990bfa44fd2f362941c288d9da72cff4cfcc6255 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Wed, 15 Oct 2008 22:03:13 -0700 Subject: [PATCH] --- yaml --- r: 114821 b: refs/heads/master c: 2f8d11971b9f54362437ce70f4d1911f0996d542 h: refs/heads/master i: 114819: 3e4517730db1dc9c3a4f7377edb6de926aa89582 v: v3 --- [refs] | 2 +- trunk/drivers/gpio/max732x.c | 5 ++++- trunk/drivers/gpio/pca953x.c | 5 ++++- trunk/drivers/gpio/pcf857x.c | 5 ++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 4dd083d461f8..910cfddd5837 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3d599d1ca57f443e5c4ff5af1e69d90350082f77 +refs/heads/master: 2f8d11971b9f54362437ce70f4d1911f0996d542 diff --git a/trunk/drivers/gpio/max732x.c b/trunk/drivers/gpio/max732x.c index b51c8135ca28..55ae9a41897a 100644 --- a/trunk/drivers/gpio/max732x.c +++ b/trunk/drivers/gpio/max732x.c @@ -372,7 +372,10 @@ static int __init max732x_init(void) { return i2c_add_driver(&max732x_driver); } -module_init(max732x_init); +/* register after i2c postcore initcall and before + * subsys initcalls that may rely on these GPIOs + */ +subsys_initcall(max732x_init); static void __exit max732x_exit(void) { diff --git a/trunk/drivers/gpio/pca953x.c b/trunk/drivers/gpio/pca953x.c index cc8468692ae0..9ceeb89f1325 100644 --- a/trunk/drivers/gpio/pca953x.c +++ b/trunk/drivers/gpio/pca953x.c @@ -289,7 +289,10 @@ static int __init pca953x_init(void) { return i2c_add_driver(&pca953x_driver); } -module_init(pca953x_init); +/* register after i2c postcore initcall and before + * subsys initcalls that may rely on these GPIOs + */ +subsys_initcall(pca953x_init); static void __exit pca953x_exit(void) { diff --git a/trunk/drivers/gpio/pcf857x.c b/trunk/drivers/gpio/pcf857x.c index fc9c6ae739ee..4bc2070dd4a1 100644 --- a/trunk/drivers/gpio/pcf857x.c +++ b/trunk/drivers/gpio/pcf857x.c @@ -351,7 +351,10 @@ static int __init pcf857x_init(void) { return i2c_add_driver(&pcf857x_driver); } -module_init(pcf857x_init); +/* register after i2c postcore initcall and before + * subsys initcalls that may rely on these GPIOs + */ +subsys_initcall(pcf857x_init); static void __exit pcf857x_exit(void) {