From 01bbc45c9e998cdb9796274a9273fd534516f4a0 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Sun, 23 Sep 2012 17:28:30 -0600 Subject: [PATCH] --- yaml --- r: 331322 b: refs/heads/master c: 6a9bce2766ef8bb7025c011653914a94a2a9ef32 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-omap2/pmu.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index cf3cfb6743af..59ba82fd4dcb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: efc7f49c87b7b806fbd840eb0ece5a3c8d2d79ef +refs/heads/master: 6a9bce2766ef8bb7025c011653914a94a2a9ef32 diff --git a/trunk/arch/arm/mach-omap2/pmu.c b/trunk/arch/arm/mach-omap2/pmu.c index af35c77c4ab4..05600374c240 100644 --- a/trunk/arch/arm/mach-omap2/pmu.c +++ b/trunk/arch/arm/mach-omap2/pmu.c @@ -11,6 +11,7 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ +#include #include @@ -53,7 +54,12 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[]) WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", dev_name); - return IS_ERR(omap_pmu_dev) ? PTR_ERR(omap_pmu_dev) : 0; + if (IS_ERR(omap_pmu_dev)) + return PTR_ERR(omap_pmu_dev); + + pm_runtime_enable(&omap_pmu_dev->dev); + + return 0; } static int __init omap_init_pmu(void)