summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/skeletonfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/skeletonfb.c')
-rw-r--r--drivers/video/fbdev/skeletonfb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/skeletonfb.c b/drivers/video/fbdev/skeletonfb.c
index a10f1057293b..40c130ab6b38 100644
--- a/drivers/video/fbdev/skeletonfb.c
+++ b/drivers/video/fbdev/skeletonfb.c
@@ -987,7 +987,12 @@ static int __init xxxfb_init(void)
*/
#ifndef MODULE
char *option = NULL;
+#endif
+
+ if (fb_modesetting_disabled("xxxfb"))
+ return -ENODEV;
+#ifndef MODULE
if (fb_get_options("xxxfb", &option))
return -ENODEV;
xxxfb_setup(option);