irqchip: Return -EPERM for reserved IRQs

The irqdomain core will report a log message for any attempted map call
that fails unless the error code is -EPERM. This patch changes the
Versatile irq controller drivers to use -EPERM because it is normal for
a subset of the IRQ inputs to be marked as reserved on the various
Versatile platforms.

Signed-off-by: Grant Likely <grant.likely@linaro.org>

Changed files
+2 -2
drivers
+1 -1
drivers/irqchip/irq-versatile-fpga.c
··· 119 119 120 120 /* Skip invalid IRQs, only register handlers for the real ones */ 121 121 if (!(f->valid & BIT(hwirq))) 122 - return -ENOTSUPP; 122 + return -EPERM; 123 123 irq_set_chip_data(irq, f); 124 124 irq_set_chip_and_handler(irq, &f->chip, 125 125 handle_level_irq);
+1 -1
drivers/irqchip/irq-vic.c
··· 197 197 198 198 /* Skip invalid IRQs, only register handlers for the real ones */ 199 199 if (!(v->valid_sources & (1 << hwirq))) 200 - return -ENOTSUPP; 200 + return -EPERM; 201 201 irq_set_chip_and_handler(irq, &vic_chip, handle_level_irq); 202 202 irq_set_chip_data(irq, v->base); 203 203 set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);