ARM: OMAP3+: PRM: fix of_irq_get() result check
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 15 Aug 2017 15:53:18 +0000 (08:53 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 15 Aug 2017 15:53:18 +0000 (08:53 -0700)
commitd683878dbeab3cd5cd073e40b41f24a4c7f62415
tree1f8624c78188fff7ad00c4794fdf531fe5c43bf0
parent90de9634a5d57b92d8af4ec23aa2c9b297ec8168
ARM: OMAP3+: PRM: fix of_irq_get() result check

of_irq_get() may return 0 as well as a nagative error number on failure
(and never on success), however omap3xxx_prm_late_init() regards 0 as a
valid IRQ -- fix this.

Fixes: 1e037794f7f ("ARM: OMAP3+: PRM: register interrupt information from DT")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/prm3xxx.c