2003-01-02 13:38:50

by Antonino A. Daplas

[permalink] [raw]
Subject: [PATCH] [TRIVIAL] [AGPGART]: early agp init fix



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

Tony

diff -Naur linux-2.5.54/drivers/char/agp/intel-agp.c linux/drivers/char/agp/intel-agp.c
--- linux-2.5.54/drivers/char/agp/intel-agp.c 2003-01-02 13:16:06.000000000 +0000
+++ linux/drivers/char/agp/intel-agp.c 2003-01-02 13:15:31.000000000 +0000
@@ -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;


2003-01-02 13:52:39

by Dave Jones

[permalink] [raw]
Subject: Re: [PATCH] [TRIVIAL] [AGPGART]: early agp init fix

On Thu, Jan 02, 2003 at 09:34:04PM +0800, Antonino Daplas wrote:

> 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

--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs