On Sun, Aug 17, 2025 at 03:47:26PM -0700, Dmitry Torokhov wrote: > To allow transitioning away from gpio-keys platform data attempt to > retrieve IRQ for interrupt-only keys using platform_get_irq_optional() > if interrupt is not specified in platform data. ... > + irq = platform_get_irq_optional(pdev, idx); > + if (irq < 0) { > + error = irq; > + return dev_err_probe(dev, error, Assigning error is redundant. > + "Unable to determine IRQ# for button #%d", > + idx); > + } -- With Best Regards, Andy Shevchenko