2005-02-03 05:28:26

by Dave Jones

[permalink] [raw]
Subject: fix matroxfb ppc compile.

Code references these vars even though they don't exist.
Untested other than compile test.

Signed-off-by: Dave Jones <[email protected]>

--- linux-2.6.10/drivers/video/matrox/matroxfb_base.c~ 2005-01-27 20:06:10.000000000 -0500
+++ linux-2.6.10/drivers/video/matrox/matroxfb_base.c 2005-01-27 20:08:49.000000000 -0500
@@ -1276,6 +1276,10 @@ static int dfp; /* "matrox:dfp */
static int dfp_type = -1; /* "matrox:dfp:xxx */
static int memtype = -1; /* "matrox:memtype:xxx" */
static char outputs[8]; /* "matrox:outputs:xxx" */
+#ifdef CONFIG_PPC_PMAC
+static int vmode;
+static int cmode;
+#endif

#ifndef MODULE
static char videomode[64]; /* "matrox:mode:xxxxx" or "matrox:xxxxx" */


2005-02-03 06:45:57

by Al Viro

[permalink] [raw]
Subject: Re: fix matroxfb ppc compile.

On Thu, Feb 03, 2005 at 12:28:16AM -0500, Dave Jones wrote:
> Code references these vars even though they don't exist.
> Untested other than compile test.

Nope - what it tries to do is to set default_vmode and default_cmode.
See 2.6.11-rc3, it got a fix for that one.