[PATCH v14 10/18] media: i2c: ds90ub9xx: Add COMMON_CLK kconfig dependency

Tomi Valkeinen
2023-06-16T14:01:24Z

Fix missing COMMON_CLK dependency:

ERROR: modpost: "__clk_get_name" [drivers/media/i2c/ds90ub913.ko] undefined!
ERROR: modpost: "devm_clk_hw_register_fixed_factor" [drivers/media/i2c/ds90ub913.ko] undefined!
ERROR: modpost: "of_clk_hw_simple_get" [drivers/media/i2c/ds90ub913.ko] undefined!
ERROR: modpost: "devm_of_clk_add_hw_provider" [drivers/media/i2c/ds90ub913.ko] undefined!

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202305081255.n5KHsShj-lkp@intel.com/
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
---
drivers/media/i2c/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 461df425c163..8a5f09a3de6c 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -1619,7 +1619,7 @@ menu "Video serializers and deserializers"

config VIDEO_DS90UB913
tristate "TI DS90UB913 FPD-Link III Serializer"
- depends on OF && I2C && VIDEO_DEV
+ depends on OF && I2C && VIDEO_DEV && COMMON_CLK
select I2C_ATR
select MEDIA_CONTROLLER
select OF_GPIO
@@ -1632,7 +1632,7 @@ config VIDEO_DS90UB913

config VIDEO_DS90UB953
tristate "TI FPD-Link III/IV CSI-2 Serializers"
- depends on OF && I2C && VIDEO_DEV
+ depends on OF && I2C && VIDEO_DEV && COMMON_CLK
select I2C_ATR
select MEDIA_CONTROLLER
select OF_GPIO
@@ -1645,7 +1645,7 @@ config VIDEO_DS90UB953

config VIDEO_DS90UB960
tristate "TI FPD-Link III/IV Deserializers"
- depends on OF && I2C && VIDEO_DEV
+ depends on OF && I2C && VIDEO_DEV && COMMON_CLK
select I2C_ATR
select MEDIA_CONTROLLER
select OF_GPIO
--
2.34.1