summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.c
diff options
context:
space:
mode:
authorMichael Krufky2007-12-21 20:12:09 +0100
committerMauro Carvalho Chehab2008-01-25 22:04:14 +0100
commit7972f9880c8c812332a56da7cfa4523d01ea310b (patch)
tree89a21740f33723c103357c66e34e039b1cd84d85 /drivers/media/video/tuner-xc2028.c
parentV4L/DVB (6892): xc5000: fix build when DVB_TUNER_XC5000 is disabled (diff)
downloadkernel-qcow2-linux-7972f9880c8c812332a56da7cfa4523d01ea310b.tar.gz
kernel-qcow2-linux-7972f9880c8c812332a56da7cfa4523d01ea310b.tar.xz
kernel-qcow2-linux-7972f9880c8c812332a56da7cfa4523d01ea310b.zip
V4L/DVB (6893): tuner-xc2028: fix xc2028_attach function
xc2028_attach was returning an integer when disabled from the build, where it should instead be returning NULL. Declare xc2028_attach as type dvb_frontend * instead of void *. The prototype declaration must be marked as extern in the header. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r--drivers/media/video/tuner-xc2028.c3
1 files changed, 2 insertions, 1 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 = {
};
-void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg)
+struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe,
+ struct xc2028_config *cfg)
{
struct xc2028_data *priv;
void *video_dev;