aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/hwspinlock.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-10-30 19:22:54 -0400
committerArnd Bergmann <arnd@arndb.de>2011-10-30 19:22:54 -0400
commitc6c3a3a03e6de52866bc81a32fc551733625d553 (patch)
treeb55967a9163dba315e2543d648de758b82c85fa1 /arch/arm/mach-omap2/hwspinlock.c
parent07e87e15b969a05a7943d7ff1abc2d8da287171c (diff)
parent8aca3ab5865f8cfbde841b6daf9442cc2279ced3 (diff)
Merge branch 'omap/cleanup' into next/cleanup2
Diffstat (limited to 'arch/arm/mach-omap2/hwspinlock.c')
-rw-r--r--arch/arm/mach-omap2/hwspinlock.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/hwspinlock.c b/arch/arm/mach-omap2/hwspinlock.c
index 06d4a80660a5..36e21091b06a 100644
--- a/arch/arm/mach-omap2/hwspinlock.c
+++ b/arch/arm/mach-omap2/hwspinlock.c
@@ -23,19 +23,11 @@
23#include <plat/omap_hwmod.h> 23#include <plat/omap_hwmod.h>
24#include <plat/omap_device.h> 24#include <plat/omap_device.h>
25 25
26struct omap_device_pm_latency omap_spinlock_latency[] = {
27 {
28 .deactivate_func = omap_device_idle_hwmods,
29 .activate_func = omap_device_enable_hwmods,
30 .flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
31 }
32};
33
34int __init hwspinlocks_init(void) 26int __init hwspinlocks_init(void)
35{ 27{
36 int retval = 0; 28 int retval = 0;
37 struct omap_hwmod *oh; 29 struct omap_hwmod *oh;
38 struct omap_device *od; 30 struct platform_device *pdev;
39 const char *oh_name = "spinlock"; 31 const char *oh_name = "spinlock";
40 const char *dev_name = "omap_hwspinlock"; 32 const char *dev_name = "omap_hwspinlock";
41 33
@@ -48,13 +40,11 @@ int __init hwspinlocks_init(void)
48 if (oh == NULL) 40 if (oh == NULL)
49 return -EINVAL; 41 return -EINVAL;
50 42
51 od = omap_device_build(dev_name, 0, oh, NULL, 0, 43 pdev = omap_device_build(dev_name, 0, oh, NULL, 0, NULL, 0, false);
52 omap_spinlock_latency, 44 if (IS_ERR(pdev)) {
53 ARRAY_SIZE(omap_spinlock_latency), false);
54 if (IS_ERR(od)) {
55 pr_err("Can't build omap_device for %s:%s\n", dev_name, 45 pr_err("Can't build omap_device for %s:%s\n", dev_name,
56 oh_name); 46 oh_name);
57 retval = PTR_ERR(od); 47 retval = PTR_ERR(pdev);
58 } 48 }
59 49
60 return retval; 50 return retval;