0001
0002
0003 #include <linux/module.h>
0004 #include <linux/types.h>
0005
0006 static bool drm_nomodeset;
0007
0008 bool drm_firmware_drivers_only(void)
0009 {
0010 return drm_nomodeset;
0011 }
0012 EXPORT_SYMBOL(drm_firmware_drivers_only);
0013
0014 static int __init disable_modeset(char *str)
0015 {
0016 drm_nomodeset = true;
0017
0018 pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
0019
0020 return 1;
0021 }
0022
0023
0024 __setup("nomodeset", disable_modeset);