mirror of https://github.com/thesofproject/sof.git
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:
parent
aee8e0553a
commit
1613f10689
|
@ -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, \
|
||||
|
|
Loading…
Reference in New Issue