aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2017-10-10 17:27:06 -0400
committerTony Lindgren <tony@atomide.com>2017-10-10 17:27:06 -0400
commit82e5051ba4e7c6d3820e3ab87c1f20a6531d64a8 (patch)
tree4c07c4b93520f4d6737df90921e0a875150016b3
parent0eecc636e5a2f667e69df318867b63edc8b44218 (diff)
ARM: OMAP3: Remove legacy IRQ for PRM
We have this coming from device tree and legacy booting is no longer needed. Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/prm3xxx.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c
index a2dd13217c89..05858f966f7d 100644
--- a/arch/arm/mach-omap2/prm3xxx.c
+++ b/arch/arm/mach-omap2/prm3xxx.c
@@ -704,12 +704,18 @@ static int omap3xxx_prm_late_init(void)
704 omap3430_pre_es3_1_reconfigure_io_chain; 704 omap3430_pre_es3_1_reconfigure_io_chain;
705 705
706 np = of_find_matching_node(NULL, omap3_prm_dt_match_table); 706 np = of_find_matching_node(NULL, omap3_prm_dt_match_table);
707 if (np) { 707 if (!np) {
708 irq_num = of_irq_get(np, 0); 708 pr_err("PRM: no device tree node for interrupt?\n");
709 if (irq_num > 0) 709
710 omap3_prcm_irq_setup.irq = irq_num; 710 return -ENODEV;
711 } 711 }
712 712
713 irq_num = of_irq_get(np, 0);
714 if (irq_num == -EPROBE_DEFER)
715 return irq_num;
716
717 omap3_prcm_irq_setup.irq = irq_num;
718
713 omap3xxx_prm_enable_io_wakeup(); 719 omap3xxx_prm_enable_io_wakeup();
714 720
715 return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup); 721 return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup);