summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/bt8xx/dst_ca.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-07-28 23:10:20 +0100
committerAndrew de Quincey <adq_dvb@lidskialf.net>2006-07-28 23:10:20 +0100
commita32e2e3de20c2e2ed969f30b49ebc9efd04f8e81 (patch)
treeed2e3d4f558cc1e00d47c62d92807ed73201861a /linux/drivers/media/dvb/bt8xx/dst_ca.c
parent52eaaa8dff6907aae78b53fc2944769bf03cddc8 (diff)
downloadmediapointer-dvb-s2-a32e2e3de20c2e2ed969f30b49ebc9efd04f8e81.tar.gz
mediapointer-dvb-s2-a32e2e3de20c2e2ed969f30b49ebc9efd04f8e81.tar.bz2
Convert DVB devices to use dvb_attach()
From: Andrew de Quincey <adq_dvb@lidskialf.net> Only devices using > 1 frontend were ported; ones which did not are left using static binding. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/dst_ca.c')
-rw-r--r--linux/drivers/media/dvb/bt8xx/dst_ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst_ca.c b/linux/drivers/media/dvb/bt8xx/dst_ca.c
index 199320a40..0ba3ac141 100644
--- a/linux/drivers/media/dvb/bt8xx/dst_ca.c
+++ b/linux/drivers/media/dvb/bt8xx/dst_ca.c
@@ -795,12 +795,12 @@ static struct dvb_device dvbdev_ca = {
.fops = &dst_ca_fops
};
-int dst_ca_attach(struct dst_state *dst, struct dvb_adapter *dvb_adapter)
+ssize_t dst_ca_attach(struct dst_state *dst, struct dvb_adapter *dvb_adapter)
{
struct dvb_device *dvbdev;
dprintk(verbose, DST_CA_ERROR, 1, "registering DST-CA device");
dvb_register_device(dvb_adapter, &dvbdev, &dvbdev_ca, dst, DVB_DEVICE_CA);
- return 0;
+ return 1; // must return non-zero for dvb_attach() to work
}
EXPORT_SYMBOL(dst_ca_attach);