Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / video / nomodeset.c
blob13cc8b7196978a8506f9bb0fd381387627946e0d
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/module.h>
4 #include <linux/types.h>
6 #include <video/nomodeset.h>
8 static bool video_nomodeset;
10 bool video_firmware_drivers_only(void)
12 return video_nomodeset;
14 EXPORT_SYMBOL(video_firmware_drivers_only);
16 static int __init disable_modeset(char *str)
18 video_nomodeset = true;
20 pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
22 return 1;
25 /* Disable kernel modesetting */
26 __setup("nomodeset", disable_modeset);