Skip to contentSkip to conversation

platform: video-mux: fix Kconfig dependency

PATCH New Arnd Bergmann 1 participant 1 message Jul 10, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform: video-mux: fix Kconfig dependency

When CONFIG_V4L2 is built as a loadable module, the new video mux driver fails to link as built-in code:

drivers/media/platform/video-mux.o: In function `video_mux_remove':
video-mux.c:(.text+0x24): undefined reference to v4l2_async_unregister_subdev' drivers/media/platform/video-mux.o: In function video_mux_probe':
video-mux.c:(.text+0x800): undefined reference to v4l2_subdev_init' video-mux.c:(.text+0xa10): undefined reference to v4l2_async_register_subdev'

This makes it use the same Kconfig dependency as all the other users of the VIDEO_V4L2_SUBDEV_API symbol.

Fixes 68803ad4522f ("[media] platform: add video-multiplexer subdevice driver")
Cc Sascha Hauer <[email protected]>
Cc Philipp Zabel <[email protected]>

---
Cc: Russell King <[email protected]>
Cc: Steve Longerbeam <[email protected]>
Cc: Sakari Ailus <[email protected]>
Cc: Pavel Machek <[email protected]>

---
 drivers/media/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +1 -1
index fb1fa0b82077..20179eb8f31e 100644
@@ -76,7 +76,7 @@ config VIDEO_M32R_AR_M64278
 
 config VIDEO_MUX
 	tristate "Video Multiplexer"
-	depends on OF && VIDEO_V4L2_SUBDEV_API && MEDIA_CONTROLLER
+	depends on VIDEO_V4L2 && OF && VIDEO_V4L2_SUBDEV_API && MEDIA_CONTROLLER
 	select REGMAP
 	help
 	  This driver provides support for N:1 video bus multiplexers.
Signature · 1 line
2.9.0