Skip to content

Commit

Permalink
x86: geode: define geode_has_vsa2() even if CONFIG_MGEODE_LX is not set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andres Salomon authored and Ingo Molnar committed May 8, 2008
1 parent 547acec commit cb3f43b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/asm-x86/geode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit cb3f43b

Please sign in to comment.