summaryrefslogtreecommitdiffstats
path: root/drivers/video/sbusfb.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
commit6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch)
tree0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /drivers/video/sbusfb.c
parentecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff)
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine status unknown.
Diffstat (limited to 'drivers/video/sbusfb.c')
-rw-r--r--drivers/video/sbusfb.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/video/sbusfb.c b/drivers/video/sbusfb.c
index 38997e99b..229cfec97 100644
--- a/drivers/video/sbusfb.c
+++ b/drivers/video/sbusfb.c
@@ -117,11 +117,19 @@ static int sbusfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
static void do_install_cmap(int con, struct fb_info *info);
static struct fb_ops sbusfb_ops = {
- sbusfb_open, sbusfb_release, sbusfb_get_fix, sbusfb_get_var, sbusfb_set_var,
- sbusfb_get_cmap, sbusfb_set_cmap, sbusfb_pan_display, sbusfb_ioctl, sbusfb_mmap
+ owner: THIS_MODULE,
+ fb_open: sbusfb_open,
+ fb_release: sbusfb_release,
+ fb_get_fix: sbusfb_get_fix,
+ fb_get_var: sbusfb_get_var,
+ fb_set_var: sbusfb_set_var,
+ fb_get_cmap: sbusfb_get_cmap,
+ fb_set_cmap sbusfb_set_cmap,
+ fb_pan_display: sbusfb_pan_display,
+ fb_ioctl: sbusfb_ioctl,
+ fb_mmap: sbusfb_mmap,
};
-
/*
* Open/Release the frame buffer device
*/
@@ -133,13 +141,11 @@ static int sbusfb_open(struct fb_info *info, int user)
if (user) {
if (fb->open == 0) {
fb->mmaped = 0;
- fb->open = 1;
fb->vtconsole = -1;
}
fb->open++;
} else
fb->consolecnt++;
- MOD_INC_USE_COUNT;
return 0;
}
@@ -160,10 +166,8 @@ static int sbusfb_release(struct fb_info *info, int user)
if (fb->reset)
fb->reset(fb);
}
- fb->open = 0;
} else
fb->consolecnt--;
- MOD_DEC_USE_COUNT;
return 0;
}