LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [RFC: 2.6 patch] sisfb_get_fix(): remove the unused second parameter
@ 2007-03-26  4:09 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-03-26  4:09 UTC (permalink / raw)
  To: thomas; +Cc: linux-kernel, adaplas

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-26  4:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26  4:09 [RFC: 2.6 patch] sisfb_get_fix(): remove the unused second parameter Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).