]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: drivers: media: pci: sta2x11: fix Kconfig dependency on GPIOLIB
authorJulian Braha <julianbraha@gmail.com>
Thu, 25 Feb 2021 08:06:58 +0000 (09:06 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 19 May 2021 08:32:08 +0000 (10:32 +0200)
commit051fda4ff19c9e9293b1a8bd6f1b0d8fcd7b4cde
tree0397731739be52b37673cec670cc84fbb02c59cd
parent9564a81ef5b5c78fd76404c506474a713c70189c
media: drivers: media: pci: sta2x11: fix Kconfig dependency on GPIOLIB

BugLink: https://bugs.launchpad.net/bugs/1928857
[ Upstream commit 24df8b74c8b2fb42c49ffe8585562da0c96446ff ]

When STA2X11_VIP is enabled, and GPIOLIB is disabled,
Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for VIDEO_ADV7180
  Depends on [n]: MEDIA_SUPPORT [=y] && GPIOLIB [=n] && VIDEO_V4L2 [=y] && I2C [=y]
  Selected by [y]:
  - STA2X11_VIP [=y] && MEDIA_SUPPORT [=y] && MEDIA_PCI_SUPPORT [=y] && MEDIA_CAMERA_SUPPORT [=y] && PCI [=y] && VIDEO_V4L2 [=y] && VIRT_TO_BUS [=y] && I2C [=y] && (STA2X11 [=n] || COMPILE_TEST [=y]) && MEDIA_SUBDRV_AUTOSELECT [=y]

This is because STA2X11_VIP selects VIDEO_ADV7180
without selecting or depending on GPIOLIB,
despite VIDEO_ADV7180 depending on GPIOLIB.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/media/pci/sta2x11/Kconfig