]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
reset: gpio: Fix missing gpiolib dependency for GPIO reset controller
authorMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 16:51:03 +0000 (16:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:38:19 +0000 (09:38 +0200)
[ Upstream commit 01f6a84c7a3eaabafd787608d630db31c6904f5c ]

The GPIO reset controller uses gpiolib but there is no Kconfig
dependency reflecting this fact, add one.

With the addition of the controller to the arm64 defconfig this is
causing build breaks for arm64 virtconfig in -next:

aarch64-linux-gnu-ld: drivers/reset/core.o: in function `__reset_add_reset_gpio_lookup':
/build/stage/linux/drivers/reset/core.c:861:(.text+0xccc): undefined reference to `gpio_device_find_by_fwnode'

Fixes: cee544a40e44 ("reset: gpio: Add GPIO-based reset controller")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240325-reset-gpiolib-deps-v2-1-3ed2517f5f53@kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/reset/Kconfig

index 85b27c42cf65ba8c21c105a129391d8322cc00f0..f426b4c3917960145541352514a95a7a3b20c4dd 100644 (file)
@@ -68,6 +68,7 @@ config RESET_BRCMSTB_RESCAL
 
 config RESET_GPIO
        tristate "GPIO reset controller"
+       depends on GPIOLIB
        help
          This enables a generic reset controller for resets attached via
          GPIOs.  Typically for OF platforms this driver expects "reset-gpios"