]> www.infradead.org Git - users/hch/misc.git/commitdiff
accel/rocket: Depend on DRM_ACCEL not just DRM
authorHeiko Stuebner <heiko@sntech.de>
Thu, 14 Aug 2025 11:35:19 +0000 (13:35 +0200)
committerTomeu Vizoso <tomeu@tomeuvizoso.net>
Mon, 1 Sep 2025 10:11:28 +0000 (12:11 +0200)
With the current dependency on only DRM, a config of

CONFIG_DRM_ACCEL_ROCKET=y

is possible, but of course wrong, because without DRM_ACCEL the build-
system will never even enter drivers/accel/* .

So depend on DRM_ACCEL instead of just DRM.

Fixes: ed98261b4168 ("accel/rocket: Add a new driver for Rockchip's NPU")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Link: https://lore.kernel.org/r/20250814113519.1551855-3-heiko@sntech.de
drivers/accel/rocket/Kconfig

index af6cda2738923decfddd9d4ee5342c915376d1e6..16465abe06607ca4caf182203e5319a34b5e8129 100644 (file)
@@ -2,7 +2,7 @@
 
 config DRM_ACCEL_ROCKET
        tristate "Rocket (support for Rockchip NPUs)"
-       depends on DRM
+       depends on DRM_ACCEL
        depends on (ARCH_ROCKCHIP && ARM64) || COMPILE_TEST
        depends on ROCKCHIP_IOMMU || COMPILE_TEST
        depends on MMU