Commit 4d5b94cf65 ("BACKPORT: gpio / ACPI: Move event handling
registration to gpiolib irqchip helpers") moved the ACPI interrupt
request/free calls into the gpiolib helper functions,
gpiochip_irqchip_add() and acpi_gpiochip_remove(). The former function
is called by pinctrl-pistachio.c, so there is no need to call it from
acpi_gpiochip_request_interrupts() anymore. And in fact, since the
argument type changed from struct acpi_gpio_chip * to struct gpio_chip *,
the current code is incorrect:
drivers/gpio/gpiolib-acpi.c: In function 'acpi_gpiochip_add':
drivers/gpio/gpiolib-acpi.c:386:2: warning: passing argument 1 of 'acpi_gpiochip_request_interrupts' from incompatible pointer type
acpi_gpiochip_request_interrupts(acpi_gpio);
^
drivers/gpio/gpiolib-acpi.c:218:6: note: expected 'struct gpio_chip *' but argument is of type 'struct acpi_gpio_chip *'
void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
BUG=chrome-os-partner:30840
TEST=builds without warnings
Change-Id: I730ae9e3fd31d09edd84596554e4390ab4bb0a06
Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/255246
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>