Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331322
b: refs/heads/master
c: 6a9bce2
h: refs/heads/master
v: v3
  • Loading branch information
Jon Hunter authored and Paul Walmsley committed Sep 23, 2012
1 parent 18b5b95 commit 01bbc45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: efc7f49c87b7b806fbd840eb0ece5a3c8d2d79ef
refs/heads/master: 6a9bce2766ef8bb7025c011653914a94a2a9ef32
8 changes: 7 additions & 1 deletion trunk/arch/arm/mach-omap2/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#include <linux/pm_runtime.h>

#include <asm/pmu.h>

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 01bbc45

Please sign in to comment.