Re: build #345 issue for v2.6.25-rc1 in tuner-core.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tony Breeds
Date: Monday, February 11, 2008 - 5:42 pm

On Mon, Feb 11, 2008 at 11:54:31AM +0100, Toralf Förster wrote:

<snip>
Fix Build error for xc5000 tuner when built as module.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>

---
Not 100% certain this is correct but it works for me :) Michael?

 drivers/media/dvb/frontends/xc5000.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/frontends/xc5000.h b/drivers/media/dvb/frontends/xc5000.h
index e0e8456..32a5f1c 100644
--- a/drivers/media/dvb/frontends/xc5000.h
+++ b/drivers/media/dvb/frontends/xc5000.h
@@ -45,7 +45,8 @@ struct xc5000_config {
 /* xc5000 callback command */
 #define XC5000_TUNER_RESET		0
 
-#if defined(CONFIG_DVB_TUNER_XC5000) || defined(CONFIG_DVB_TUNER_XC5000_MODULE)
+#if defined(CONFIG_DVB_TUNER_XC5000) || \
+    (defined(CONFIG_DVB_TUNER_XC5000_MODULE) && defined(MODULE))
 extern struct dvb_frontend* xc5000_attach(struct dvb_frontend *fe,
 					  struct i2c_adapter *i2c,
 					  struct xc5000_config *cfg);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
build #345 issue for v2.6.25-rc1 in tuner-core.c, Toralf , (Mon Feb 11, 3:54 am)
Re: build #345 issue for v2.6.25-rc1 in tuner-core.c, Tony Breeds, (Mon Feb 11, 5:42 pm)