summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_drv.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2021-12-15 10:51:15 +0100
committerMaxime Ripard <maxime@cerno.tech>2022-01-11 13:16:11 +0100
commitd62b9bee52dc887f9bf7d13cac120b7caf75079e (patch)
tree94722f7218630d96393c4690ef35f8030b9178de /drivers/gpu/drm/vc4/vc4_drv.c
parent39feb6e726e7b36327e4c82239669bf86dd59544 (diff)
downloadlinux-d62b9bee52dc887f9bf7d13cac120b7caf75079e.tar.gz
linux-d62b9bee52dc887f9bf7d13cac120b7caf75079e.tar.bz2
linux-d62b9bee52dc887f9bf7d13cac120b7caf75079e.zip
drm/vc4: Support nomodeset
If we have nomodeset on the kernel command line we should have the firmware framebuffer driver kept as is and not try to load the full-blown KMS driver. In this case, let's just register the v3d driver. Signed-off-by: Maxime Ripard <maxime@cerno.tech> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20211215095117.176435-3-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.c')
-rw-r--r--drivers/gpu/drm/vc4/vc4_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 16abc3a3d601..d3cae84a4c4e 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -357,6 +357,9 @@ static int __init vc4_drm_register(void)
{
int ret;
+ if (drm_firmware_drivers_only())
+ return -ENODEV;
+
ret = platform_register_drivers(component_drivers,
ARRAY_SIZE(component_drivers));
if (ret)