summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-08-18 15:24:26 +0000
committerMichael Hunold <devnull@localhost>2004-08-18 15:24:26 +0000
commitb8e91d008210ae8c8bdaee397a3215583b6d24a6 (patch)
tree554e279790d576802e87028a9859b1bb665e656d
parenteb54bd3f6e486d34b02960f50ef84957d553019f (diff)
downloadmediapointer-dvb-s2-b8e91d008210ae8c8bdaee397a3215583b6d24a6.tar.gz
mediapointer-dvb-s2-b8e91d008210ae8c8bdaee397a3215583b6d24a6.tar.bz2
- convert to new frontend functions, too
-rw-r--r--linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
index c9c321514..f63916ecd 100644
--- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
+++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
@@ -39,7 +39,6 @@
#include "dmxdev.h"
#include "dvb_demux.h"
-#include "dvb_i2c.h"
#include "dvb_filter.h"
#include "dvb_frontend.h"
#include "dvb_net.h"
@@ -102,7 +101,6 @@ struct ttusb_dec {
struct dmxdev dmxdev;
struct dvb_demux demux;
struct dmx_frontend frontend;
- struct dvb_i2c_bus i2c_bus;
struct dvb_net dvb_net;
struct dvb_frontend_info *frontend_info;
int (*frontend_ioctl) (struct dvb_frontend *, unsigned int, void *);
@@ -1682,15 +1680,13 @@ static int ttusb_dec_3000s_frontend_ioctl(struct dvb_frontend *fe,
static void ttusb_dec_init_frontend(struct ttusb_dec *dec)
{
- dec->i2c_bus.adapter = dec->adapter;
-
- dvb_register_frontend(dec->frontend_ioctl, &dec->i2c_bus, (void *)dec,
- dec->frontend_info);
+ int ret;
+ ret = dvb_register_frontend_new(dec->frontend_ioctl, dec->adapter, dec, dec->frontend_info, THIS_MODULE);
}
static void ttusb_dec_exit_frontend(struct ttusb_dec *dec)
{
- dvb_unregister_frontend(dec->frontend_ioctl, &dec->i2c_bus);
+ dvb_unregister_frontend_new(dec->frontend_ioctl, dec->adapter);
}
static void ttusb_dec_init_filters(struct ttusb_dec *dec)