patch-2.4.0-test2 linux/drivers/video/macfb.c
Next file: linux/drivers/video/macmodes.c
Previous file: linux/drivers/video/imsttfb.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/macfb.c
- Orig date:
Sun Feb 13 19:29:04 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/video/macfb.c linux/drivers/video/macfb.c
@@ -207,25 +207,6 @@
static int vidtest = 0;
static int currcon = 0;
-/*
- * Open/Release the frame buffer device
- */
-
-static int macfb_open(struct fb_info *info, int user)
-{
- /*
- * Nothing, only a usage count for the moment
- */
- MOD_INC_USE_COUNT;
- return(0);
-}
-
-static int macfb_release(struct fb_info *info, int user)
-{
- MOD_DEC_USE_COUNT;
- return(0);
-}
-
static int macfb_update_var(int con, struct fb_info *info)
{
return 0;
@@ -863,16 +844,14 @@
}
static struct fb_ops macfb_ops = {
- macfb_open,
- macfb_release,
- macfb_get_fix,
- macfb_get_var,
- macfb_set_var,
- macfb_get_cmap,
- macfb_set_cmap,
- macfb_pan_display,
- macfb_ioctl,
- NULL
+ owner: THIS_MODULE,
+ fb_get_fix: macfb_get_fix,
+ fb_get_var: macfb_get_var,
+ fb_set_var: macfb_set_var,
+ fb_get_cmap: macfb_get_cmap,
+ fb_set_cmap: macfb_set_cmap,
+ fb_pan_display: macfb_pan_display,
+ fb_ioctl: macfb_ioctl,
};
void macfb_setup(char *options, int *ints)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)