diff options
Diffstat (limited to 'drivers/video/hecubafb.c')
-rw-r--r-- | drivers/video/hecubafb.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 0ade72590998..3ec0e97f36e4 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c | |||
@@ -267,12 +267,9 @@ static void hecubafb_imageblit(struct fb_info *info, | |||
267 | * this is the slow path from userspace. they can seek and write to | 267 | * this is the slow path from userspace. they can seek and write to |
268 | * the fb. it's inefficient to do anything less than a full screen draw | 268 | * the fb. it's inefficient to do anything less than a full screen draw |
269 | */ | 269 | */ |
270 | static ssize_t hecubafb_write(struct file *file, const char __user *buf, | 270 | static ssize_t hecubafb_write(struct fb_info *info, const char __user *buf, |
271 | size_t count, loff_t *ppos) | 271 | size_t count, loff_t *ppos) |
272 | { | 272 | { |
273 | struct inode *inode; | ||
274 | int fbidx; | ||
275 | struct fb_info *info; | ||
276 | unsigned long p; | 273 | unsigned long p; |
277 | int err=-EINVAL; | 274 | int err=-EINVAL; |
278 | struct hecubafb_par *par; | 275 | struct hecubafb_par *par; |
@@ -280,13 +277,6 @@ static ssize_t hecubafb_write(struct file *file, const char __user *buf, | |||
280 | unsigned int fbmemlength; | 277 | unsigned int fbmemlength; |
281 | 278 | ||
282 | p = *ppos; | 279 | p = *ppos; |
283 | inode = file->f_dentry->d_inode; | ||
284 | fbidx = iminor(inode); | ||
285 | info = registered_fb[fbidx]; | ||
286 | |||
287 | if (!info || !info->screen_base) | ||
288 | return -ENODEV; | ||
289 | |||
290 | par = info->par; | 280 | par = info->par; |
291 | xres = info->var.xres; | 281 | xres = info->var.xres; |
292 | fbmemlength = (xres * info->var.yres)/8; | 282 | fbmemlength = (xres * info->var.yres)/8; |