]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: PINCTRL_AMDISP should depend on DRM_AMD_ISP
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 18 Mar 2025 13:58:40 +0000 (14:58 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 18 Mar 2025 14:23:52 +0000 (15:23 +0100)
The AMD Image Signal Processor GPIO pin control functionality is only
present on AMD platforms with ISP support, and its platform device is
instantiated by the AMD ISP driver.  Hence add a dependency on
DRM_AMD_ISP, to prevent asking the user about this driver when
configuring a kernel that does not support the AMD ISP.

Fixes: e97435ab09f3ad7b ("pinctrl: amd: isp411: Add amdisp GPIO pinctrl")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/3685561e8e3cd1d94bce220eeb6001d659da615c.1742306024.git.geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index 5819f18b2ddce946a584a186493fbf8d3075dd6a..464cc9aca157a940bd337357650797a5b5617e4f 100644 (file)
@@ -51,6 +51,7 @@ config PINCTRL_AMD
 
 config PINCTRL_AMDISP
        tristate "AMDISP GPIO pin control"
+       depends on DRM_AMD_ISP || COMPILE_TEST
        depends on HAS_IOMEM
        select GPIOLIB
        select PINCONF