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");
25 /* Disable kernel modesetting */
26 __setup("nomodeset", disable_modeset);