Skip to contentSkip to conversation

: early agp init fix

PATCH In review Antonino Daplas 2 participants 2 messages Jan 2, 2003 Agpgart driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : early agp init fix

intel_agp_init() must not be declared static for explicit early initialization to work (ie i810fb).

Tony

drivers/char/agp/intel-agp.c +1 -1
diff -Naur linux-2.5.54/drivers/char/agp/intel-agp.c linux/drivers/char/agp/intel-agp.c
@@ -1467,7 +1467,7 @@
 	.probe		= agp_intel_probe,
 };
 
-static int __init agp_intel_init(void)
+int __init agp_intel_init(void)
 {
 	int ret_val;
 	static int agp_initialised=0;
#1 lore raw
Quoted 2 lines · Antonino Daplas

intel_agp_init() must not be declared static for explicit early initialization to work (ie i810fb).

Ahh, I was wondering why that was the odd one out. Applied, with a comment added describing this so it doesn't happen again 8-)

Thanks,

Dave

Signature · 2 lines
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs