patch-2.4.0-test2 linux/drivers/video/dn_cfb8.c
Next file: linux/drivers/video/dnfb.c
Previous file: linux/drivers/video/dn_cfb4.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Tue Jun 20 14:14:51 2000
- Orig file:
v2.4.0-test1/linux/drivers/video/dn_cfb8.c
- Orig date:
Tue Feb 1 01:35:44 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/video/dn_cfb8.c linux/drivers/video/dn_cfb8.c
@@ -112,8 +112,6 @@
/* frame buffer operations */
-static int dn_fb_open(struct fb_info *info);
-static int dn_fb_release(struct fb_info *info);
static int dn_fb_get_fix(struct fb_fix_screeninfo *fix, int con,
struct fb_info *info);
static int dn_fb_get_var(struct fb_var_screeninfo *var, int con,
@@ -137,9 +135,15 @@
static struct display disp[MAX_NR_CONSOLES];
static struct fb_info fb_info;
-static struct fb_ops dn_fb_ops = {
- dn_fb_open,dn_fb_release, dn_fb_get_fix, dn_fb_get_var, dn_fb_set_var,
- dn_fb_get_cmap, dn_fb_set_cmap, dn_fb_pan_display, dn_fb_ioctl
+static struct fb_ops dn_fb_ops = {
+ owner: THIS_MODULE,
+ fb_get_fix: dn_fb_get_fix,
+ fb_get_var: dn_fb_get_var,
+ fb_set_var: dn_fb_set_var,
+ fb_get_cmap: dn_fb_get_cmap,
+ fb_set_cmap: dn_fb_set_cmap,
+ fb_pan_display: dn_fb_pan_display,
+ fb_ioctl: dn_fb_ioctl,
};
static int currcon=0;
@@ -157,22 +161,6 @@
#define USE_DN_ACCEL
static struct display_switch dispsw_apollofb;
-
-static int dn_fb_open(struct fb_info *info)
-{
- /*
- * Nothing, only a usage count for the moment
- */
-
- MOD_INC_USE_COUNT;
- return(0);
-}
-
-static int dn_fb_release(struct fb_info *info)
-{
- MOD_DEC_USE_COUNT;
- return(0);
-}
static int dn_fb_get_fix(struct fb_fix_screeninfo *fix, int con,
struct fb_info *info) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)