lkml.org 
[lkml]   [2007]   [Mar]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 26 Mar 2007 06:09:21 +0200
FromAdrian Bunk <>
Subject[RFC: 2.6 patch] sisfb_get_fix(): remove the unused second parameter
Most likely this patch isn't correct but points to a bug.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---
 drivers/video/sis/sis_main.c |   11 ++++-------
 drivers/video/sis/sis_main.h |    4 ++--
 2 files changed, 6 insertions(+), 9 deletions(-)
--- linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.h.old	2007-03-26 00:26:53.000000000 +0200
+++ linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.h	2007-03-26 00:27:10.000000000 +0200
@@ -672,8 +672,8 @@
 SISINITSTATIC int sisfb_init(void);
 
 /* fbdev routines */
-static int	sisfb_get_fix(struct fb_fix_screeninfo *fix, int con,
-				struct fb_info *info);
+static int	sisfb_get_fix(struct fb_fix_screeninfo *fix,
+			      struct fb_info *info);
 
 static int	sisfb_ioctl(struct fb_info *info, unsigned int cmd,
 			    unsigned long arg);
--- linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.c.old	2007-03-26 00:25:33.000000000 +0200
+++ linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.c	2007-03-26 00:26:35.000000000 +0200
@@ -1430,11 +1430,8 @@
 	if((err = sisfb_do_set_var(&info->var, 1, info)))
 		return err;
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
-	sisfb_get_fix(&info->fix, info->currcon, info);
-#else
-	sisfb_get_fix(&info->fix, -1, info);
-#endif
+	sisfb_get_fix(&info->fix, info);
+
 	return 0;
 }
 
@@ -1853,7 +1850,7 @@
 }
 
 static int
-sisfb_get_fix(struct fb_fix_screeninfo *fix, int con, struct fb_info *info)
+sisfb_get_fix(struct fb_fix_screeninfo *fix, struct fb_info *info)
 {
 	struct sis_video_info *ivideo = (struct sis_video_info *)info->par;
 
@@ -6386,7 +6383,7 @@
 		sis_fb_info->fix = ivideo->sisfb_fix;
 		sis_fb_info->screen_base = ivideo->video_vbase + ivideo->video_offset;
 		sis_fb_info->fbops = &sisfb_ops;
-		sisfb_get_fix(&sis_fb_info->fix, -1, sis_fb_info);
+		sisfb_get_fix(&sis_fb_info->fix, sis_fb_info);
 		sis_fb_info->pseudo_palette = ivideo->pseudo_palette;
 
 		fb_alloc_cmap(&sis_fb_info->cmap, 256 , 0);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-26 06:13    [from the cache]
©2003-2008