gpio: ep93xx: Cut gpio_to_irq() usage
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Aug 2018 20:41:10 +0000 (22:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 07:09:06 +0000 (09:09 +0200)
commitd875cc27e2399a4b5d190db0a949570fc4276fec
tree8ee669eb809271180677f29fbcca3de2f7d7c3b7
parent68491b075db2e905d7df1594cf127da9bcd05cab
gpio: ep93xx: Cut gpio_to_irq() usage

This removes the callback into the gpiolib creating a
circular call to convert between GPIO numbers and IRQs
and pushes the whole business into the driver, just
using an array of IRQ bases for the three IRQ capable
ports.

This way we get rid of including <linux/gpio.h> that
no driver should include.

Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ep93xx.c