diff options
author | Tony Lindgren <tony@atomide.com> | 2017-10-10 17:27:19 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-10-10 17:27:19 -0400 |
commit | fe97874a41bf911350bae6bda7fc044d12c76a4a (patch) | |
tree | eea07fbd29d510bef970d923cf9db611bf4b6ebf /arch/arm/mach-omap2/omap4-common.c | |
parent | 3da521672568702c58767de69b5b0b58c8095fae (diff) |
ARM: OMAP2+: Drop omap_hwmod_irq_info
With the previous patches removing the need for legacy IRQs
now that all of mach-omap2 is booting in device tree only mode,
we can drop struct omap_hwmod_irq_info.
Note that we can now also finally drop omap4_xlate_irq.
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index cf65ab8bb004..b226c8aaf8b1 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -299,30 +299,6 @@ static const struct of_device_id intc_match[] = { | |||
299 | 299 | ||
300 | static struct device_node *intc_node; | 300 | static struct device_node *intc_node; |
301 | 301 | ||
302 | unsigned int omap4_xlate_irq(unsigned int hwirq) | ||
303 | { | ||
304 | struct of_phandle_args irq_data; | ||
305 | unsigned int irq; | ||
306 | |||
307 | if (!intc_node) | ||
308 | intc_node = of_find_matching_node(NULL, intc_match); | ||
309 | |||
310 | if (WARN_ON(!intc_node)) | ||
311 | return hwirq; | ||
312 | |||
313 | irq_data.np = intc_node; | ||
314 | irq_data.args_count = 3; | ||
315 | irq_data.args[0] = 0; | ||
316 | irq_data.args[1] = hwirq - OMAP44XX_IRQ_GIC_START; | ||
317 | irq_data.args[2] = IRQ_TYPE_LEVEL_HIGH; | ||
318 | |||
319 | irq = irq_create_of_mapping(&irq_data); | ||
320 | if (WARN_ON(!irq)) | ||
321 | irq = hwirq; | ||
322 | |||
323 | return irq; | ||
324 | } | ||
325 | |||
326 | void __init omap_gic_of_init(void) | 302 | void __init omap_gic_of_init(void) |
327 | { | 303 | { |
328 | struct device_node *np; | 304 | struct device_node *np; |