linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix controlfb and platinumfb drivers
@ 2003-05-24 11:40 Paul Mackerras
  2003-05-27 22:29 ` James Simmons
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2003-05-24 11:40 UTC (permalink / raw)
  To: James Simmons; +Cc: linux-kernel, linux-fbdev-devel

James,

This patch fixes the controlfb and platinumfb drivers so that the
arguments to fb_set_var are in the correct order.  Please apply.

Thanks,
Paul.

diff -urN linux-2.5/drivers/video/controlfb.c pmac-2.5/drivers/video/controlfb.c
--- linux-2.5/drivers/video/controlfb.c	2003-04-25 22:19:46.000000000 +1000
+++ pmac-2.5/drivers/video/controlfb.c	2003-05-21 13:32:42.000000000 +1000
@@ -475,7 +475,7 @@
 
 	/* Apply default var */
 	var.activate = FB_ACTIVATE_NOW;
-	rc = fb_set_var(&var, &p->info);
+	rc = fb_set_var(&p->info, &var);
 	if (rc && (vmode != VMODE_640_480_60 || cmode != CMODE_8))
 		goto try_again;
 
diff -urN linux-2.5/drivers/video/platinumfb.c pmac-2.5/drivers/video/platinumfb.c
--- linux-2.5/drivers/video/platinumfb.c	2003-04-25 22:19:46.000000000 +1000
+++ pmac-2.5/drivers/video/platinumfb.c	2003-05-21 13:33:01.000000000 +1000
@@ -399,7 +399,7 @@
 	/* Apply default var */
 	p->info.var = var;
 	var.activate = FB_ACTIVATE_NOW;
-	rc = fb_set_var(&var, &p->info);
+	rc = fb_set_var(&p->info, &var);
 	if (rc && (default_vmode != VMODE_640_480_60 || default_cmode != CMODE_8))
 		goto try_again;
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-28 12:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-24 11:40 [PATCH] fix controlfb and platinumfb drivers Paul Mackerras
2003-05-27 22:29 ` James Simmons
2003-05-27 23:08   ` [Linux-fbdev-devel] " Paul Mackerras
2003-05-28 12:36     ` Benjamin Herrenschmidt

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