diff options
| author | Andres Salomon <dilinger@queued.net> | 2008-05-07 16:07:38 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-05-08 09:43:50 -0400 |
| commit | cb3f43b22bbb5ddbf6ce3e2bac40ce6eba30aba0 (patch) | |
| tree | a14d5849992e74860248b534d13b7071bf82682b /include | |
| parent | 547acec7ecc32b14c2740de3f32ce7d1b36a0f69 (diff) | |
x86: geode: define geode_has_vsa2() even if CONFIG_MGEODE_LX is not set
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-x86/geode.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-x86/geode.h b/include/asm-x86/geode.h index 8a53bc817230..6e6458853a36 100644 --- a/include/asm-x86/geode.h +++ b/include/asm-x86/geode.h | |||
| @@ -185,7 +185,14 @@ static inline int is_geode(void) | |||
| 185 | return (is_geode_gx() || is_geode_lx()); | 185 | return (is_geode_gx() || is_geode_lx()); |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | #ifdef CONFIG_MGEODE_LX | ||
| 188 | extern int geode_has_vsa2(void); | 189 | extern int geode_has_vsa2(void); |
| 190 | #else | ||
| 191 | static inline int geode_has_vsa2(void) | ||
| 192 | { | ||
| 193 | return 0; | ||
| 194 | } | ||
| 195 | #endif | ||
| 189 | 196 | ||
| 190 | /* MFGPTs */ | 197 | /* MFGPTs */ |
| 191 | 198 | ||
