Lines 34-39
Link Here
|
34 |
#include <linux/screen_info.h> |
34 |
#include <linux/screen_info.h> |
35 |
#include <linux/sysfb.h> |
35 |
#include <linux/sysfb.h> |
36 |
|
36 |
|
|
|
37 |
static int skip_simpledrm; |
38 |
|
39 |
static int __init simpledrm_disable(char *opt) |
40 |
{ |
41 |
if (!opt) |
42 |
return -EINVAL; |
43 |
|
44 |
get_option(&opt, &skip_simpledrm); |
45 |
|
46 |
if (skip_simpledrm) |
47 |
pr_info("The simpledrm driver will not be probed\n"); |
48 |
|
49 |
return 0; |
50 |
} |
51 |
early_param("nvidia-drm.modeset", simpledrm_disable); |
52 |
|
37 |
static struct platform_device *pd; |
53 |
static struct platform_device *pd; |
38 |
static DEFINE_MUTEX(disable_lock); |
54 |
static DEFINE_MUTEX(disable_lock); |
39 |
static bool disabled; |
55 |
static bool disabled; |
Lines 85-91
static __init int sysfb_init(void)
Link Here
|
85 |
|
101 |
|
86 |
/* try to create a simple-framebuffer device */ |
102 |
/* try to create a simple-framebuffer device */ |
87 |
compatible = sysfb_parse_mode(si, &mode); |
103 |
compatible = sysfb_parse_mode(si, &mode); |
88 |
if (compatible) { |
104 |
if (compatible && !skip_simpledrm) { |
89 |
pd = sysfb_create_simplefb(si, &mode); |
105 |
pd = sysfb_create_simplefb(si, &mode); |
90 |
if (!IS_ERR(pd)) |
106 |
if (!IS_ERR(pd)) |
91 |
goto unlock_mutex; |
107 |
goto unlock_mutex; |
92 |
- |
|
|