]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i2c: nomadik: Enable compile testing for the Nomadik driver
authorAndi Shyti <andi.shyti@kernel.org>
Tue, 10 Dec 2024 22:16:41 +0000 (23:16 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 7 Jan 2025 22:46:10 +0000 (23:46 +0100)
The AMBA bus header files do not generate compilation errors even
when the AMBA bus is not enabled in Kconfig via ARM_AMBA.

This allows the Nomadik driver to be compiled for testing
purposes with the COMPILE_TEST option enabled.

Cc: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241210221641.2661577-1-andi.shyti@kernel.org
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/Kconfig

index ceb3ecdf884b528af47a60be411b88a39d0f179e..ae4772faa876f7d30ed43dd476dc8fecc948035c 100644 (file)
@@ -910,7 +910,7 @@ config I2C_MXS
 
 config I2C_NOMADIK
        tristate "ST-Ericsson Nomadik/Ux500 I2C Controller"
-       depends on ARM_AMBA
+       depends on ARM_AMBA || COMPILE_TEST
        help
          If you say yes to this option, support will be included for the
          I2C interface from ST-Ericsson's Nomadik and Ux500 architectures,