diff options
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 3 | ||||
-rw-r--r-- | drivers/media/video/tuner-xc2028.h | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 5ed12e2272e9..ddd94f1d6a6f 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -1140,7 +1140,8 @@ static const struct dvb_tuner_ops xc2028_dvb_tuner_ops = { | |||
1140 | 1140 | ||
1141 | }; | 1141 | }; |
1142 | 1142 | ||
1143 | void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg) | 1143 | struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe, |
1144 | struct xc2028_config *cfg) | ||
1144 | { | 1145 | { |
1145 | struct xc2028_data *priv; | 1146 | struct xc2028_data *priv; |
1146 | void *video_dev; | 1147 | void *video_dev; |
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h index 7462629b98fd..3eb8420379a4 100644 --- a/drivers/media/video/tuner-xc2028.h +++ b/drivers/media/video/tuner-xc2028.h | |||
@@ -48,14 +48,15 @@ struct xc2028_config { | |||
48 | #define XC2028_RESET_CLK 1 | 48 | #define XC2028_RESET_CLK 1 |
49 | 49 | ||
50 | #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE)) | 50 | #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE)) |
51 | void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg); | 51 | extern struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe, |
52 | struct xc2028_config *cfg); | ||
52 | #else | 53 | #else |
53 | void *xc2028_attach(struct dvb_frontend *fe, | 54 | static inline struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe, |
54 | struct xc2028_config *cfg) | 55 | struct xc2028_config *cfg) |
55 | { | 56 | { |
56 | printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", | 57 | printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", |
57 | __FUNCTION__); | 58 | __FUNCTION__); |
58 | return -EINVAL; | 59 | return NULL; |
59 | } | 60 | } |
60 | #endif | 61 | #endif |
61 | 62 | ||