summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/aty/aty128fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/aty/aty128fb.c')
-rw-r--r--drivers/video/fbdev/aty/aty128fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c
index 57e398fe7a81..dd31b9d7d337 100644
--- a/drivers/video/fbdev/aty/aty128fb.c
+++ b/drivers/video/fbdev/aty/aty128fb.c
@@ -2503,7 +2503,12 @@ static int aty128fb_init(void)
{
#ifndef MODULE
char *option = NULL;
+#endif
+
+ if (fb_modesetting_disabled("aty128fb"))
+ return -ENODEV;
+#ifndef MODULE
if (fb_get_options("aty128fb", &option))
return -ENODEV;
aty128fb_setup(option);