diff options
author | Javier Martinez Canillas <javierm@redhat.com> | 2021-12-17 01:37:46 +0100 |
---|---|---|
committer | Javier Martinez Canillas <javierm@redhat.com> | 2022-01-27 19:15:50 +0100 |
commit | fce8bfffa23943dfcc2339a748db4f296dc7bea7 (patch) | |
tree | 0eaab15cff805ae26af62631e949296bfdb3a64e /drivers/gpu/drm/rcar-du | |
parent | 7fd7d70181b3796e456bef38397caf947b7de061 (diff) | |
download | linux-fce8bfffa23943dfcc2339a748db4f296dc7bea7.tar.gz linux-fce8bfffa23943dfcc2339a748db4f296dc7bea7.tar.bz2 linux-fce8bfffa23943dfcc2339a748db4f296dc7bea7.zip |
drm: rcar-du: Add support for the nomodeset kernel parameter
According to disable Documentation/admin-guide/kernel-parameters.txt, this
parameter can be used to disable kernel modesetting.
DRM drivers will not perform display-mode changes or accelerated rendering
and only the system framebuffer will be available if it was set-up.
But only a few DRM drivers currently check for nomodeset, make this driver
to also support the command line parameter.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211217003752.3946210-32-javierm@redhat.com
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index 5a8131ef81d5..982e450233ed 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -701,6 +701,9 @@ static struct platform_driver rcar_du_platform_driver = { static int __init rcar_du_init(void) { + if (drm_firmware_drivers_only()) + return -ENODEV; + rcar_du_of_init(rcar_du_of_table); return platform_driver_register(&rcar_du_platform_driver); |