diff mbox

[5/5] omap:hwspinlocks-ensure the order of registration

Message ID 1279558221-14954-6-git-send-email-h-kanigeri2@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kanigeri, Hari July 19, 2010, 4:50 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/hwspinlocks.c b/arch/arm/mach-omap2/hwspinlocks.c
index f0f05e1..a9f85b9 100644
--- a/arch/arm/mach-omap2/hwspinlocks.c
+++ b/arch/arm/mach-omap2/hwspinlocks.c
@@ -67,4 +67,4 @@  int __init hwspinlocks_init(void)
 
 	return retval;
 }
-module_init(hwspinlocks_init);
+postcore_initcall(hwspinlocks_init);
diff --git a/arch/arm/plat-omap/hwspinlock.c b/arch/arm/plat-omap/hwspinlock.c
index 1883add..3742b04 100644
--- a/arch/arm/plat-omap/hwspinlock.c
+++ b/arch/arm/plat-omap/hwspinlock.c
@@ -309,6 +309,7 @@  static int __init hwspinlock_init(void)
 
 	return retval;
 }
+postcore_initcall(hwspinlock_init);
 
 /* Cleanup function */
 static void __exit hwspinlock_exit(void)
@@ -325,8 +326,6 @@  static void __exit hwspinlock_exit(void)
 	if (hwspinlock_module->is_init)
 		kfree(hwspinlocks);
 }
-
-module_init(hwspinlock_init);
 module_exit(hwspinlock_exit);
 
 MODULE_LICENSE("GPL v2");