drivers: imx: interrupt: Change how the cascade IRQ template is defined

Instead of taking the name from an array of strings (which is allowed by
GCC) I compose the name directly inside the IRQSTR_CASCADE_TMPL_DECL
macro. GCC is able to detect that the name is a compile time constant
and allows the old code, XCC does not and requires this change.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2019-11-18 14:10:26 +02:00 committed by Daniel Baluta
parent aee8e0553a
commit 1613f10689
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ static const struct irq_cascade_ops irq_ops = {
/* IRQ_STEER interrupts */
#define IRQSTR_CASCADE_TMPL_DECL(n) \
{ \
.name = irq_name_irqsteer[n], \
.name = "irqsteer" #n, \
.irq = IRQ_NUM_IRQSTR_DSP##n, \
.handler = irqstr_irqhandler_##n, \
.ops = &irq_ops, \