patch-2.1.109 linux/drivers/video/vesafb.c
Next file: linux/drivers/video/vfb.c
Previous file: linux/drivers/video/txtcon.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Fri Jul 10 15:18:32 1998
- Orig file:
v2.1.108/linux/drivers/video/vesafb.c
- Orig date:
Wed Jun 24 22:54:08 1998
diff -u --recursive --new-file v2.1.108/linux/drivers/video/vesafb.c linux/drivers/video/vesafb.c
@@ -117,7 +117,7 @@
* Open/Release the frame buffer device
*/
-static int vesafb_open(struct fb_info *info)
+static int vesafb_open(struct fb_info *info, int user)
{
/*
* Nothing, only a usage count for the moment
@@ -126,7 +126,7 @@
return(0);
}
-static int vesafb_release(struct fb_info *info)
+static int vesafb_release(struct fb_info *info, int user)
{
MOD_DEC_USE_COUNT;
return(0);
@@ -443,12 +443,12 @@
/* Not supported */
}
-__initfunc(unsigned long vesafb_init(unsigned long mem_start))
+__initfunc(void vesafb_init(void))
{
int i,j;
if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB)
- return mem_start;
+ return;
video_base = (char*)screen_info.lfb_base;
video_bpp = screen_info.lfb_depth;
@@ -517,16 +517,14 @@
fb_info.blank=&vesafb_blank;
do_fb_set_var(&vesafb_defined,1);
- if (register_framebuffer(&fb_info)<0)
- return mem_start;
-
vesafb_get_var(&disp.var, -1, &fb_info);
vesafb_set_disp(-1);
+ if (register_framebuffer(&fb_info)<0)
+ return;
+
printk("fb%d: %s frame buffer device\n",
GET_FB_IDX(fb_info.node), fb_info.modename);
-
- return mem_start;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov