diff options
author | Hari Kanigeri <h-kanigeri2@ti.com> | 2010-07-13 13:22:19 -0400 |
---|---|---|
committer | Paolo Pisati <paolo.pisati@canonical.com> | 2012-08-17 04:19:10 -0400 |
commit | c1af3f24067f4a0c24c011055ac5c4a4f562d757 (patch) | |
tree | 955dbfd369ec05a8535e58ff1d78bd38ed1174b1 | |
parent | f6a15045415cb7ad5073aeca17440a3a2db48504 (diff) |
omap:hwspinlocks-ensure the order of registration
Ensure that the hwspinlock driver is registered prior to
I2C driver registration since I2C is dependent on hwspinlock.
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/hwspinlocks.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/hwspinlock.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/hwspinlocks.c b/arch/arm/mach-omap2/hwspinlocks.c index 9206baac49a..439c72efb2e 100644 --- a/arch/arm/mach-omap2/hwspinlocks.c +++ b/arch/arm/mach-omap2/hwspinlocks.c | |||
@@ -76,4 +76,4 @@ int __init hwspinlocks_init(void) | |||
76 | 76 | ||
77 | return retval; | 77 | return retval; |
78 | } | 78 | } |
79 | module_init(hwspinlocks_init); | 79 | postcore_initcall(hwspinlocks_init); |
diff --git a/arch/arm/plat-omap/hwspinlock.c b/arch/arm/plat-omap/hwspinlock.c index 8191390e9b5..7cfe8774750 100644 --- a/arch/arm/plat-omap/hwspinlock.c +++ b/arch/arm/plat-omap/hwspinlock.c | |||
@@ -310,6 +310,7 @@ static int __init hwspinlock_init(void) | |||
310 | 310 | ||
311 | return retval; | 311 | return retval; |
312 | } | 312 | } |
313 | postcore_initcall(hwspinlock_init); | ||
313 | 314 | ||
314 | /* Cleanup function */ | 315 | /* Cleanup function */ |
315 | static void __exit hwspinlock_exit(void) | 316 | static void __exit hwspinlock_exit(void) |
@@ -326,8 +327,6 @@ static void __exit hwspinlock_exit(void) | |||
326 | if (hwspinlock_module->is_init) | 327 | if (hwspinlock_module->is_init) |
327 | kfree(hwspinlocks); | 328 | kfree(hwspinlocks); |
328 | } | 329 | } |
329 | |||
330 | module_init(hwspinlock_init); | ||
331 | module_exit(hwspinlock_exit); | 330 | module_exit(hwspinlock_exit); |
332 | 331 | ||
333 | MODULE_LICENSE("GPL v2"); | 332 | MODULE_LICENSE("GPL v2"); |