Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311004
b: refs/heads/master
c: 99b59df
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Hilman committed May 11, 2012
1 parent 8bda9a8 commit b727edd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 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: e3c83c2db458f1e040c5b4bb19773c458e0240a8
refs/heads/master: 99b59df04899a048d1a3ed8bc2b1263779816868
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-omap2/pm34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ static int __init omap3_pm_init(void)
ret = request_irq(omap_prcm_event_to_irq("io"),
_prcm_int_handle_io, IRQF_SHARED | IRQF_NO_SUSPEND, "pm_io",
omap3_pm_init);
enable_irq(omap_prcm_event_to_irq("io"));

if (ret) {
pr_err("pm: Failed to request pm_io irq\n");
Expand Down
14 changes: 11 additions & 3 deletions trunk/arch/arm/mach-omap2/prm2xxx_3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/irq.h>

#include "common.h"
#include <plat/cpu.h>
Expand Down Expand Up @@ -303,8 +304,15 @@ void omap3xxx_prm_restore_irqen(u32 *saved_mask)

static int __init omap3xxx_prcm_init(void)
{
if (cpu_is_omap34xx())
return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup);
return 0;
int ret = 0;

if (cpu_is_omap34xx()) {
ret = omap_prcm_register_chain_handler(&omap3_prcm_irq_setup);
if (!ret)
irq_set_status_flags(omap_prcm_event_to_irq("io"),
IRQ_NOAUTOEN);
}

return ret;
}
subsys_initcall(omap3xxx_prcm_init);

0 comments on commit b727edd

Please sign in to comment.