pinctrl: mediatek: select GPIOLIB
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Oct 2018 15:57:43 +0000 (17:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Oct 2018 11:53:21 +0000 (13:53 +0200)
commit71a9d395aa12279e53d411ef3345fddc840347c6
tree22b941b60c580c716d57f4e8d46132f9690633d5
parent5fd8d05191e6bca88b6d6d016757c30bded9fe61
pinctrl: mediatek: select GPIOLIB

Removing the linux/gpio.h include means we no longer have a declaration
of gpiochip_lock_as_irq() when CONFIG_GPIOLIB is disabled:

drivers/pinctrl/mediatek/mtk-eint.c: In function 'mtk_eint_irq_request_resources':
drivers/pinctrl/mediatek/mtk-eint.c:247:8: error: implicit declaration of function 'gpiochip_lock_as_irq'; did you mean 'spin_lock_irq'? [-Werror=implicit-function-declaration]
drivers/pinctrl/mediatek/mtk-eint.c: In function 'mtk_eint_irq_release_resources':
drivers/pinctrl/mediatek/mtk-eint.c:272:2: error: implicit declaration of function 'gpiochip_unlock_as_irq'; did you mean 'spin_unlock_irq'? [-Werror=implicit-function-declaration]

Select it explictly instead.

Fixes: 1c5fb66afa2a ("pinctrl: Include <linux/gpio/driver.h> nothing else")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/Kconfig