linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fbdev: Remove i810fb explicit agp initialization hack.
@ 2004-09-15 21:43 Andreas Henriksson
  0 siblings, 0 replies; only message in thread
From: Andreas Henriksson @ 2004-09-15 21:43 UTC (permalink / raw)
  To: Andrew Morton; +Cc: adaplas, davej, linux-kernel


When Antonino A. Daplas posted his "fbdev: Initialize i810fb after agpgart"
patch he said that the ugly agp initialization hack for intel agp shouldn't be
needed but that he couldn't test it.

I have tested the framebuffer updates and additionally removed the
initialization hack and it does indeed work.

Signed-off-by: Andreas Henriksson <andreas@fjortis.info>

--- linux-2.6.9-rc1-mm5/drivers/char/agp/intel-agp.c.old	2004-09-15 23:13:05.000000000 +0200
+++ linux-2.6.9-rc1-mm5/drivers/char/agp/intel-agp.c	2004-09-15 23:13:23.000000000 +0200
@@ -1781,16 +1781,8 @@ static struct pci_driver agp_intel_pci_d
 	.resume		= agp_intel_resume,
 };
 
-/* intel_agp_init() must not be declared static for explicit
-   early initialization to work (ie i810fb) */
-int __init agp_intel_init(void)
+static int __init agp_intel_init(void)
 {
-	static int agp_initialised=0;
-
-	if (agp_initialised == 1)
-		return 0;
-	agp_initialised=1;
-
 	return pci_module_init(&agp_intel_pci_driver);
 }
 

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

only message in thread, other threads:[~2004-09-15 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-15 21:43 [PATCH] fbdev: Remove i810fb explicit agp initialization hack Andreas Henriksson

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