]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pinctrl: lochnagar: select GPIOLIB
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 16:36:46 +0000 (17:36 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jan 2020 09:43:46 +0000 (10:43 +0100)
commitf7e36e18946b4ec756b9c5cf4fb8891be8d1e4a3
tree276896cc0abe1a2b7c683af71a429225919a1bd3
parentfd6988496e79a6a4bdb514a4655d2920209eb85d
pinctrl: lochnagar: select GPIOLIB

In a rare randconfig build I came across one configuration that does
not enable CONFIG_GPIOLIB, which is needed by lochnagar:

ERROR: "devm_gpiochip_add_data" [drivers/pinctrl/cirrus/pinctrl-lochnagar.ko] undefined!
ERROR: "gpiochip_generic_free" [drivers/pinctrl/cirrus/pinctrl-lochnagar.ko] undefined!
ERROR: "gpiochip_generic_request" [drivers/pinctrl/cirrus/pinctrl-lochnagar.ko] undefined!
ERROR: "gpiochip_get_data" [drivers/pinctrl/cirrus/pinctrl-lochnagar.ko] undefined!

Add another 'select' like all other pinctrl drivers have.

Fixes: 0548448b719a ("pinctrl: lochnagar: Add support for the Cirrus Logic Lochnagar")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20191218163701.171914-1-arnd@arndb.de
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/cirrus/Kconfig