Commit b2b6ff4a authored by David S. Miller's avatar David S. Miller

[ATYFB]: Fix build error in sparc specific sections.

parent a100226f
...@@ -984,7 +984,6 @@ static int atyfb_release(struct fb_info *info, int user) ...@@ -984,7 +984,6 @@ static int atyfb_release(struct fb_info *info, int user)
var.yres_virtual = var.yres_virtual =
var.yres; var.yres;
} }
gen_set_var(&var, -1, info);
} }
} }
} }
...@@ -1249,16 +1248,14 @@ static void atyfb_palette(int enter) ...@@ -1249,16 +1248,14 @@ static void atyfb_palette(int enter)
{ {
struct fb_info *info; struct fb_info *info;
struct atyfb_par *par; struct atyfb_par *par;
struct display *d;
int i; int i;
for (i = 0; i < MAX_NR_CONSOLES; i++) { for (i = 0; i < FB_MAX; i++) {
d = &fb_display[i]; info = registered_fb[i];
if (d->fb_info && if (info &&
d->fb_info->fbops == &atyfb_ops && info->fbops == &atyfb_ops &&
d->fb_info->display_fg && info->display_fg &&
d->fb_info->display_fg->vc_num == i) { info->display_fg->vc_num == i) {
info = d->fb_info;
par = (struct atyfb_par *) info->par; par = (struct atyfb_par *) info->par;
atyfb_save_palette(par, enter); atyfb_save_palette(par, enter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment