aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorG, Manjunath Kondaiah <manjugk@ti.com>2010-09-07 02:59:58 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:10 -0400
commit22cf4e85b7c3f3e4653b7d42c7a8070d536a9840 (patch)
tree0487ab7dd49b874546595294573f1185bdac982e
parentc1af3f24067f4a0c24c011055ac5c4a4f562d757 (diff)
omap3: hwmod: disable hwspinlocks
The hwspinlock hwmod is implemented only for omap4 and not supported for omap3 and omap2. This patch enable hwspinlocks only for omap4. Boot warning on omap3: [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: at arch/arm/mach-omap2/hwspinlocks.c:61 hwspinlocks_init+0x24/0xbc() [ 0.000000] Modules linked in: [ 0.000000] [<c00470ec>] (unwind_backtrace+0x0/0xe4) from [<c0078978>] (warn_slowpath_common+0x4c/0x64) [ 0.000000] [<c0078978>] (warn_slowpath_common+0x4c/0x64) from [<c00789a8>] (warn_slowpath_null+0x18/0x1c) [ 0.000000] [<c00789a8>] (warn_slowpath_null+0x18/0x1c) from [<c0017040>] (hwspinlocks_init+0x24/0xbc) [ 0.000000] [<c0017040>] (hwspinlocks_init+0x24/0xbc) from [<c0041340>] (do_one_initcall+0x58/0x1b4) [ 0.000000] [<c0041340>] (do_one_initcall+0x58/0x1b4) from [<c0008574>] (kernel_init+0x98/0x150) [ 0.000000] [<c0008574>] (kernel_init+0x98/0x150) from [<c0042970>] (kernel_thread_exit+0x0/0x8) [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]-- Signed-off-by: G, Manjunath Kondaiah <manjugk@ti.com>
-rw-r--r--arch/arm/mach-omap2/hwspinlocks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/hwspinlocks.c b/arch/arm/mach-omap2/hwspinlocks.c
index 439c72efb2e..3c71b92a482 100644
--- a/arch/arm/mach-omap2/hwspinlocks.c
+++ b/arch/arm/mach-omap2/hwspinlocks.c
@@ -56,6 +56,9 @@ int __init hwspinlocks_init(void)
56 struct omap_hwmod *oh; 56 struct omap_hwmod *oh;
57 char *oh_name, *pdev_name; 57 char *oh_name, *pdev_name;
58 58
59 if (!cpu_is_omap44xx())
60 return -EINVAL;
61
59 oh_name = "spinlock"; 62 oh_name = "spinlock";
60 oh = omap_hwmod_lookup(oh_name); 63 oh = omap_hwmod_lookup(oh_name);
61 if (WARN_ON(oh == NULL)) 64 if (WARN_ON(oh == NULL))