public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] asiliantfb fixes
@ 2004-06-30  2:41 Eric Lammerts
  2004-06-30  3:17 ` Paul Mundt
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Lammerts @ 2004-06-30  2:41 UTC (permalink / raw)
  To: jsimmons; +Cc: linux-kernel


Hi,
this patch fixes the asiliantfb driver. A call to the init function
was missing so it was never actually used. The other fix is in the
init function writing somewhere using a physical address instead of a
virtual address.

Eric

--- linux-2.6.7/drivers/video/fbmem.c.orig	2004-06-23 21:53:18.000000000 -0400
+++ linux-2.6.7/drivers/video/fbmem.c	2004-06-28 22:10:45.000000000 -0400
@@ -172,6 +172,7 @@
 extern int kyrofb_setup(char*);
 extern int mc68x328fb_init(void);
 extern int mc68x328fb_setup(char *);
+extern int asiliantfb_init(void);

 static struct {
 	const char *name;
@@ -245,6 +246,9 @@
 #ifdef CONFIG_FB_CT65550
 	{ "chipsfb", chips_init, NULL },
 #endif
+#ifdef CONFIG_FB_ASILIANT
+	{ "asiliant", asiliantfb_init, NULL },
+#endif
 #ifdef CONFIG_FB_IMSTT
 	{ "imsttfb", imsttfb_init, imsttfb_setup },
 #endif
--- linux-2.6.7/drivers/video/asiliantfb.c.orig	2004-06-28 22:03:38.000000000 -0400
+++ linux-2.6.7/drivers/video/asiliantfb.c	2004-06-28 22:04:28.000000000 -0400
@@ -571,7 +571,7 @@
 	}

 	pci_write_config_dword(dp, 4, 0x02800083);
-	writeb(3, addr + 0x400784);
+	writeb(3, p->screen_base + 0x400784);

 	init_asiliant(p, addr);


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

end of thread, other threads:[~2004-06-30 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30  2:41 [PATCH] asiliantfb fixes Eric Lammerts
2004-06-30  3:17 ` Paul Mundt
2004-06-30 11:52   ` jsimmons
2004-06-30 13:04     ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox