patch-2.1.109 linux/drivers/video/hpfb.c

Next file: linux/drivers/video/macfb.c
Previous file: linux/drivers/video/fonts.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/drivers/video/hpfb.c linux/drivers/video/hpfb.c
@@ -245,7 +245,7 @@
 	/* Not supported */
 }
 
-static int hpfb_open(struct fb_info *info)
+static int hpfb_open(struct fb_info *info, int user)
 {
 	/*
 	 * Nothing, only a usage count for the moment
@@ -280,7 +280,7 @@
 	display->dispsw = &fbcon_cfb8;
 }
 
-static int hpfb_release(struct fb_info *info)
+static int hpfb_release(struct fb_info *info, int user)
 {
 	MOD_DEC_USE_COUNT;
 	return(0);
@@ -304,7 +304,6 @@
 __initfunc(int hpfb_init_one(unsigned long base))
 {
 	unsigned long fboff;
-	int err;
 
 	fboff = (readb(base + TOPCAT_FBOMSB) << 8) 
 		| readb(base + TOPCAT_FBOLSB);
@@ -363,12 +362,11 @@
 	fb_info.blank = &hpfb_blank;
 	do_fb_set_var(&hpfb_defined, 1);
 
-	err = register_framebuffer(&fb_info);
-	if (err < 0)
-		return 1;
-
 	hpfb_get_var(&disp.var, -1, &fb_info);
 	hpfb_set_disp(-1);
+
+	if (register_framebuffer(&fb_info) < 0)
+		return 1;
 
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov