|
@@ -107,7 +107,9 @@ static struct display fb_display[MAX_NR_CONSOLES];
|
|
|
|
|
|
static signed char con2fb_map[MAX_NR_CONSOLES];
|
|
|
static signed char con2fb_map_boot[MAX_NR_CONSOLES];
|
|
|
+#ifndef MODULE
|
|
|
static int logo_height;
|
|
|
+#endif
|
|
|
static int logo_lines;
|
|
|
/* logo_shown is an index to vc_cons when >= 0; otherwise follows FBCON_LOGO
|
|
|
enums. */
|
|
@@ -576,6 +578,13 @@ static int fbcon_takeover(int show_logo)
|
|
|
return err;
|
|
|
}
|
|
|
|
|
|
+#ifdef MODULE
|
|
|
+static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
|
|
|
+ int cols, int rows, int new_cols, int new_rows)
|
|
|
+{
|
|
|
+ logo_shown = FBCON_LOGO_DONTSHOW;
|
|
|
+}
|
|
|
+#else
|
|
|
static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
|
|
|
int cols, int rows, int new_cols, int new_rows)
|
|
|
{
|
|
@@ -584,6 +593,11 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
|
|
|
int cnt, erase = vc->vc_video_erase_char, step;
|
|
|
unsigned short *save = NULL, *r, *q;
|
|
|
|
|
|
+ if (info->flags & FBINFO_MODULE) {
|
|
|
+ logo_shown = FBCON_LOGO_DONTSHOW;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
* remove underline attribute from erase character
|
|
|
* if black and white framebuffer.
|
|
@@ -655,6 +669,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
|
|
|
vc->vc_top = logo_lines;
|
|
|
}
|
|
|
}
|
|
|
+#endif /* MODULE */
|
|
|
|
|
|
#ifdef CONFIG_FB_TILEBLITTING
|
|
|
static void set_blitting_type(struct vc_data *vc, struct fb_info *info)
|