mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] media: platform: Fix build error
@ 2022-03-18  7:10 Wang Hai
  2022-03-18  8:23 ` Jacopo Mondi
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Hai @ 2022-03-18  7:10 UTC (permalink / raw)
  To: mchehab, laurent.pinchart, jacopo; +Cc: linux-media, linux-kernel, wanghai38

If VIDEO_IMX_MIPI_CSIS is y but VIDEO_DEV is n, building failed:

drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_remove':
imx-mipi-csis.c:(.text+0x1f0): undefined reference to `v4l2_async_nf_unregister'
ld: imx-mipi-csis.c:(.text+0x1f8): undefined reference to `v4l2_async_nf_cleanup'
ld: imx-mipi-csis.c:(.text+0x200): undefined reference to `v4l2_async_unregister_subdev'

Set VIDEO_IMX_MIPI_CSIS to depend on VIDEO_DEV to fix it

Fixes: 4a598f62a03b ("media: platform/*/Kconfig: make manufacturer menus more uniform")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
---
 drivers/media/platform/nxp/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/nxp/Kconfig b/drivers/media/platform/nxp/Kconfig
index 838abc9766b4..704fcf55697b 100644
--- a/drivers/media/platform/nxp/Kconfig
+++ b/drivers/media/platform/nxp/Kconfig
@@ -6,6 +6,7 @@ comment "NXP drivers"
 
 config VIDEO_IMX_MIPI_CSIS
 	tristate "NXP MIPI CSI-2 CSIS receiver found on i.MX7 and i.MX8 models"
+	depends on VIDEO_DEV
 	select MEDIA_CONTROLLER
 	select V4L2_FWNODE
 	select VIDEO_V4L2_SUBDEV_API
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-18  8:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18  7:10 [PATCH -next] media: platform: Fix build error Wang Hai
2022-03-18  8:23 ` Jacopo Mondi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®