Hello Andy, Thanks for sending this cleanup series. By comments are below and inlined in the individual patches further in the patchset. On Tue, May 12, 2020 at 09:45:10PM +0300, Andy Shevchenko wrote: > platform_get_irq() will generate an error message if the requested IRQ > is not present. Use platform_get_irq_optional() to avoid the error message > being generated. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > Cc: Serge Semin <fancer.lancer@xxxxxxxxx> > --- > drivers/gpio/gpio-dwapb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c > index 8639c4a7f46974..5bc5057f071f37 100644 > --- a/drivers/gpio/gpio-dwapb.c > +++ b/drivers/gpio/gpio-dwapb.c > @@ -542,7 +542,7 @@ static void dwapb_get_irq(struct device *dev, struct fwnode_handle *fwnode, > if (np) > pp->irq[j] = of_irq_get(np, j); > else if (has_acpi_companion(dev)) > - pp->irq[j] = platform_get_irq(to_platform_device(dev), j); > + pp->irq[j] = platform_get_irq_optional(to_platform_device(dev), j); If only we didn't have sub-nodes describing the GPIO ports, we could have used the platform_get_irq_optional() here for both DT and ACPI based devices... Since we do, there is no way but to have the "if (np) else if(has_acpi_companion())" conditional statement here. Thanks for sending this patch. Reviewed-by: Serge Semin <fancer.lancer@xxxxxxxxx> -Sergey > > if (pp->irq[j] >= 0) > pp->has_irq = true; > -- > 2.26.2 >