Skip to content

Commit f544bf0

Browse files
geertumiquelraynal
authored andcommitted
mtd: MTD_INTEL_DG should depend on DRM_I915 or DRM_XE
Intel Discrete Graphics non-volatile memory is only present on Intel discrete graphics devices, and its auxiliary device is instantiated by the Intel i915 and Xe2 DRM drivers. Hence add dependencies on DRM_I915 and DRM_XE, to prevent asking the user about this driver when configuring a kernel without Intel graphics support. Fixes: ceb5ab3 ("mtd: add driver for intel graphics non-volatile memory device") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 8f5ae30 commit f544bf0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/mtd/devices/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ config MTD_POWERNV_FLASH
185185

186186
config MTD_INTEL_DG
187187
tristate "Intel Discrete Graphics non-volatile memory driver"
188-
depends on AUXILIARY_BUS
189-
depends on MTD
188+
depends on AUXILIARY_BUS && MTD
189+
depends on DRM_I915!=n || DRM_XE!=n || COMPILE_TEST
190190
help
191191
This provides an MTD device to access Intel Discrete Graphics
192192
non-volatile memory.

0 commit comments

Comments
 (0)