Platform code historically allowed creating IRQ resources with IRQI have been aware of this problem for a few days, and by doing experiments on the hardware, I have found the following ways that maybe suitableï
number 0 to indicate "no interrupt assigned", so this driver tries to
filter out such conditions. The negative IRQs (errors) will be rejected
by request_irq() but I guess we can lose -EPROBE_DEFER. We could do
if (keypad->irq <= 0) {
err = keypad->irq ?: -ENXIO : keypad->irq;
goto failed_free;
}