]> err.no Git - linux-2.6/commitdiff
x86: geode: define geode_has_vsa2() even if CONFIG_MGEODE_LX is not set
authorAndres Salomon <dilinger@queued.net>
Wed, 7 May 2008 20:07:38 +0000 (13:07 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 8 May 2008 13:43:50 +0000 (15:43 +0200)
We want drivers to be able to use geode_has_vsa2 without having to worry
about what model geode is being compiled for.  This patch ensures that
geode_has_vsa2 is always defined.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/geode.h

index 8a53bc8172301ece042151f061cfd3d36cd418a3..6e6458853a36322bc2830628270f8a6656d6c9f3 100644 (file)
@@ -185,7 +185,14 @@ static inline int is_geode(void)
        return (is_geode_gx() || is_geode_lx());
 }
 
+#ifdef CONFIG_MGEODE_LX
 extern int geode_has_vsa2(void);
+#else
+static inline int geode_has_vsa2(void)
+{
+       return 0;
+}
+#endif
 
 /* MFGPTs */