summaryrefslogtreecommitdiff
path: root/drivers/video/nomodeset.c
blob: 13cc8b7196978a8506f9bb0fd381387627946e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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);
loft.net>2020-02-19 10:51:12 -0800 commitc3d5e561d6623ab54082b7955f2555b138589e0d (patch) tree434e09e9b54231b967cfd832b000fb08249bcb80 /drivers/net/ethernet parentd631f96dec471fd5f21e8ddeabc520e9259b095f (diff)parent52ccbdace039480000dc7a4262dabe29f9ea14d5 (diff)
Merge branch 'octeontx2-af-Cleanup-changes'
Sunil Goutham says: ==================== octeontx2-af: Cleanup changes These patches cleanup AF driver by removing unnecessary function exports and cleanup repititive logic. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')