1
0
Fork 0
alistair23-linux/drivers/pinctrl/bcm
Necip Fazil Yildiran fcf7bf4065 pinctrl: bcm: fix kconfig dependency warning when !GPIOLIB
[ Upstream commit 513034d8b0 ]

When PINCTRL_BCM2835 is enabled and GPIOLIB is disabled, it results in the
following Kbuild warning:

WARNING: unmet direct dependencies detected for GPIOLIB_IRQCHIP
  Depends on [n]: GPIOLIB [=n]
  Selected by [y]:
  - PINCTRL_BCM2835 [=y] && PINCTRL [=y] && OF [=y] && (ARCH_BCM2835 [=n] || ARCH_BRCMSTB [=n] || COMPILE_TEST [=y])

The reason is that PINCTRL_BCM2835 selects GPIOLIB_IRQCHIP without
depending on or selecting GPIOLIB while GPIOLIB_IRQCHIP is subordinate to
GPIOLIB.

Honor the kconfig menu hierarchy to remove kconfig dependency warnings.

Fixes: 85ae9e512f ("pinctrl: bcm2835: switch to GPIOLIB_IRQCHIP")
Signed-off-by: Necip Fazil Yildiran <fazilyildiran@gmail.com>
Link: https://lore.kernel.org/r/20200914144025.371370-1-fazilyildiran@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:57:34 +01:00
..
Kconfig pinctrl: bcm: fix kconfig dependency warning when !GPIOLIB 2020-10-29 09:57:34 +01:00
Makefile pinctrl: bcm: add Northstar driver 2018-10-10 09:16:54 +02:00
pinctrl-bcm281xx.c pinctrl: bcm281xx: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures 2017-08-22 14:36:25 +02:00
pinctrl-bcm2835.c pinctrl: bcm2835: Pass irqchip when adding gpiochip 2019-08-26 13:21:53 +02:00
pinctrl-cygnus-mux.c pinctrl: bcm: remove redundant assignment to pointer log 2019-09-12 10:25:53 +01:00
pinctrl-iproc-gpio.c pinctrl: iproc: allow for error from platform_get_irq() 2019-10-05 18:36:57 +02:00
pinctrl-ns.c pinctrl: bcm: ns: support updated DT binding as syscon subnode 2018-12-21 11:45:49 +01:00
pinctrl-ns2-mux.c pinctrl: ns2: Fix off by one bugs in ns2_pinmux_enable() 2019-10-05 00:13:25 +02:00
pinctrl-nsp-gpio.c pinctrl: bcm: nsp: Use library functions 2017-10-07 00:00:13 +02:00
pinctrl-nsp-mux.c pinctrl: nsp: Fix potential NULL dereference 2018-07-14 12:47:04 +02:00