Re: [PATCH v1 2/2] gpio: mb86s7x: Remove superfluous test for ACPI companion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 12, 2020 at 8:26 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> acpi_gpiochip_request_interrupts() will check for ACPI handle of
> the GPIO chip parent device and bail out if there is none defined.
> Thus, has_acpi_companion() is effectively repeating above and
> is not needed in the individual driver.
>
> Assigning ->to_irq() unconditionally doesn't change anything, except
> an error code, but this we fix as well by propagating it from
> platform_get_irq().
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Patch applied.

Yours,
Linus Walleij



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux