staging: tegra-video: fix V4L2 dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 May 2020 22:13:06 +0000 (00:13 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 28 May 2020 11:00:43 +0000 (13:00 +0200)
commit1f46d85ffa75ddf0403387eb731c73cd3e713f43
tree8af16c730ab08b596f714d1da327968b7d802b89
parentfb6c05b08b1a672cdc749b78f4e63cbfdfdd0ee8
staging: tegra-video: fix V4L2 dependency

Rather than using a dependency on VIDEO_V4L2, this driver uses
"select", which fails when other dependencies are missing:

WARNING: unmet direct dependencies detected for VIDEO_V4L2
  Depends on [n]: MEDIA_SUPPORT [=y] && (I2C [=y] || I2C [=y]=n) && VIDEO_DEV [=n]
  Selected by [y]:
  - VIDEO_TEGRA [=y] && STAGING [=y] && STAGING_MEDIA [=y] && MEDIA_SUPPORT [=y] && TEGRA_HOST1X [=y]
(plus an endless stream of link errors for other drivers that
depend on VIDEO_V4L2 but are now lacking their dependencies)

Link: https://lore.kernel.org/r/20200527221327.3339232-1-arnd@arndb.de
Fixes: 3d8a97eabef0 ("media: tegra-video: Add Tegra210 Video input driver")
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/staging/media/tegra-video/Kconfig