aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 4059ea178c2d..a5c6397ad591 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -380,6 +380,21 @@ static void set_type(struct i2c_client *c, unsigned int type,
380 tune_now = 0; 380 tune_now = 0;
381 break; 381 break;
382 } 382 }
383 case TUNER_XC5000C:
384 {
385 struct xc5000_config xc5000c_cfg = {
386 .i2c_address = t->i2c->addr,
387 /* if_khz will be set at dvb_attach() */
388 .if_khz = 0,
389 .chip_id = XC5000C,
390 };
391
392 if (!dvb_attach(xc5000_attach,
393 &t->fe, t->i2c->adapter, &xc5000c_cfg))
394 goto attach_failed;
395 tune_now = 0;
396 break;
397 }
383 case TUNER_NXP_TDA18271: 398 case TUNER_NXP_TDA18271:
384 { 399 {
385 struct tda18271_config cfg = { 400 struct tda18271_config cfg = {
@@ -1314,18 +1329,7 @@ static struct i2c_driver tuner_driver = {
1314 .id_table = tuner_id, 1329 .id_table = tuner_id,
1315}; 1330};
1316 1331
1317static __init int init_tuner(void) 1332module_i2c_driver(tuner_driver);
1318{
1319 return i2c_add_driver(&tuner_driver);
1320}
1321
1322static __exit void exit_tuner(void)
1323{
1324 i2c_del_driver(&tuner_driver);
1325}
1326
1327module_init(init_tuner);
1328module_exit(exit_tuner);
1329 1333
1330MODULE_DESCRIPTION("device driver for various TV and TV+FM radio tuners"); 1334MODULE_DESCRIPTION("device driver for various TV and TV+FM radio tuners");
1331MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer"); 1335MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer");