diff options
-rw-r--r-- | arch/arm/mach-omap2/pmu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pmu.c b/arch/arm/mach-omap2/pmu.c index af35c77c4ab4..05600374c240 100644 --- a/arch/arm/mach-omap2/pmu.c +++ b/arch/arm/mach-omap2/pmu.c | |||
@@ -11,6 +11,7 @@ | |||
11 | * the Free Software Foundation; either version 2 of the License, or | 11 | * the Free Software Foundation; either version 2 of the License, or |
12 | * (at your option) any later version. | 12 | * (at your option) any later version. |
13 | */ | 13 | */ |
14 | #include <linux/pm_runtime.h> | ||
14 | 15 | ||
15 | #include <asm/pmu.h> | 16 | #include <asm/pmu.h> |
16 | 17 | ||
@@ -53,7 +54,12 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[]) | |||
53 | WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", | 54 | WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", |
54 | dev_name); | 55 | dev_name); |
55 | 56 | ||
56 | return IS_ERR(omap_pmu_dev) ? PTR_ERR(omap_pmu_dev) : 0; | 57 | if (IS_ERR(omap_pmu_dev)) |
58 | return PTR_ERR(omap_pmu_dev); | ||
59 | |||
60 | pm_runtime_enable(&omap_pmu_dev->dev); | ||
61 | |||
62 | return 0; | ||
57 | } | 63 | } |
58 | 64 | ||
59 | static int __init omap_init_pmu(void) | 65 | static int __init omap_init_pmu(void) |