OSDN Git Service

drm: xlnx: dpsub: Fix DMADEVICES Kconfig dependency
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 28 Jul 2020 22:23:32 +0000 (01:23 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 5 Sep 2020 16:52:54 +0000 (19:52 +0300)
commit3e8b2403545efd46c6347002e27eae4708205fd4
tree0010d8afb9804f2146ad55b84e248a1847d441b6
parentd2b86100245080cfdf1e95e9e07477474c1be2bd
drm: xlnx: dpsub: Fix DMADEVICES Kconfig dependency

The dpsub driver uses the DMA engine API, and thus selects DMA_ENGINE to
provide that API. DMA_ENGINE depends on DMADEVICES, which can be
deselected by the user, creating a possibly unmet indirect dependency:

WARNING: unmet direct dependencies detected for DMA_ENGINE
  Depends on [n]: DMADEVICES [=n]
  Selected by [m]:
  - DRM_ZYNQMP_DPSUB [=m] && HAS_IOMEM [=y] && (ARCH_ZYNQMP || COMPILE_TEST [=y]) && COMMON_CLK [=y] && DRM [=m] && OF [=y]

Add a dependency on DMADEVICES to fix this.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
drivers/gpu/drm/xlnx/Kconfig