1
0
Fork 0
linux/drivers/video/nomodeset.c
Daniel Baumann 79d69e5050
Adding upstream version 6.12.33.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 12:14:28 +02:00

26 lines
520 B
C

// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <linux/types.h>
#include <video/nomodeset.h>
static bool video_nomodeset;
bool video_firmware_drivers_only(void)
{
return video_nomodeset;
}
EXPORT_SYMBOL(video_firmware_drivers_only);
static int __init disable_modeset(char *str)
{
video_nomodeset = true;
pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
return 1;
}
/* Disable kernel modesetting */
__setup("nomodeset", disable_modeset);