|
|
@@ -170,7 +170,7 @@ static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx,
|
|
|
int height, int width);
|
|
|
static int fbcon_switch(struct vc_data *vc);
|
|
|
static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch);
|
|
|
-static int fbcon_set_palette(struct vc_data *vc, const unsigned char *table);
|
|
|
+static void fbcon_set_palette(struct vc_data *vc, const unsigned char *table);
|
|
|
|
|
|
/*
|
|
|
* Internal routines
|
|
|
@@ -2651,17 +2651,17 @@ static struct fb_cmap palette_cmap = {
|
|
|
0, 16, palette_red, palette_green, palette_blue, NULL
|
|
|
};
|
|
|
|
|
|
-static int fbcon_set_palette(struct vc_data *vc, const unsigned char *table)
|
|
|
+static void fbcon_set_palette(struct vc_data *vc, const unsigned char *table)
|
|
|
{
|
|
|
struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]];
|
|
|
int i, j, k, depth;
|
|
|
u8 val;
|
|
|
|
|
|
if (fbcon_is_inactive(vc, info))
|
|
|
- return -EINVAL;
|
|
|
+ return;
|
|
|
|
|
|
if (!CON_IS_VISIBLE(vc))
|
|
|
- return 0;
|
|
|
+ return;
|
|
|
|
|
|
depth = fb_get_color_depth(&info->var, &info->fix);
|
|
|
if (depth > 3) {
|
|
|
@@ -2683,7 +2683,7 @@ static int fbcon_set_palette(struct vc_data *vc, const unsigned char *table)
|
|
|
} else
|
|
|
fb_copy_cmap(fb_default_cmap(1 << depth), &palette_cmap);
|
|
|
|
|
|
- return fb_set_cmap(&palette_cmap, info);
|
|
|
+ fb_set_cmap(&palette_cmap, info);
|
|
|
}
|
|
|
|
|
|
static u16 *fbcon_screen_pos(struct vc_data *vc, int offset)
|