diff options
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-i2c.c | 8 | ||||
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-input.c | 8 | ||||
-rw-r--r-- | drivers/media/pci/bt8xx/bttvp.h | 5 |
3 files changed, 12 insertions, 9 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-i2c.c b/drivers/media/pci/bt8xx/bttv-i2c.c index c63c643ed1f8..b7c52dc8999c 100644 --- a/drivers/media/pci/bt8xx/bttv-i2c.c +++ b/drivers/media/pci/bt8xx/bttv-i2c.c | |||
@@ -394,3 +394,11 @@ int init_bttv_i2c(struct bttv *btv) | |||
394 | 394 | ||
395 | return btv->i2c_rc; | 395 | return btv->i2c_rc; |
396 | } | 396 | } |
397 | |||
398 | int fini_bttv_i2c(struct bttv *btv) | ||
399 | { | ||
400 | if (0 != btv->i2c_rc) | ||
401 | return 0; | ||
402 | |||
403 | return i2c_del_adapter(&btv->c.i2c_adap); | ||
404 | } | ||
diff --git a/drivers/media/pci/bt8xx/bttv-input.c b/drivers/media/pci/bt8xx/bttv-input.c index 01c71214f9ec..f36821367d8d 100644 --- a/drivers/media/pci/bt8xx/bttv-input.c +++ b/drivers/media/pci/bt8xx/bttv-input.c | |||
@@ -415,14 +415,6 @@ void init_bttv_i2c_ir(struct bttv *btv) | |||
415 | #endif | 415 | #endif |
416 | } | 416 | } |
417 | 417 | ||
418 | int fini_bttv_i2c(struct bttv *btv) | ||
419 | { | ||
420 | if (0 != btv->i2c_rc) | ||
421 | return 0; | ||
422 | |||
423 | return i2c_del_adapter(&btv->c.i2c_adap); | ||
424 | } | ||
425 | |||
426 | int bttv_input_init(struct bttv *btv) | 418 | int bttv_input_init(struct bttv *btv) |
427 | { | 419 | { |
428 | struct bttv_ir *ir; | 420 | struct bttv_ir *ir; |
diff --git a/drivers/media/pci/bt8xx/bttvp.h b/drivers/media/pci/bt8xx/bttvp.h index eb13be7ae3f4..e7910e0ffa05 100644 --- a/drivers/media/pci/bt8xx/bttvp.h +++ b/drivers/media/pci/bt8xx/bttvp.h | |||
@@ -300,6 +300,10 @@ extern int no_overlay; | |||
300 | /* bttv-input.c */ | 300 | /* bttv-input.c */ |
301 | 301 | ||
302 | extern void init_bttv_i2c_ir(struct bttv *btv); | 302 | extern void init_bttv_i2c_ir(struct bttv *btv); |
303 | |||
304 | /* ---------------------------------------------------------- */ | ||
305 | /* bttv-i2c.c */ | ||
306 | extern int init_bttv_i2c(struct bttv *btv); | ||
303 | extern int fini_bttv_i2c(struct bttv *btv); | 307 | extern int fini_bttv_i2c(struct bttv *btv); |
304 | 308 | ||
305 | /* ---------------------------------------------------------- */ | 309 | /* ---------------------------------------------------------- */ |
@@ -310,7 +314,6 @@ extern unsigned int bttv_verbose; | |||
310 | extern unsigned int bttv_debug; | 314 | extern unsigned int bttv_debug; |
311 | extern unsigned int bttv_gpio; | 315 | extern unsigned int bttv_gpio; |
312 | extern void bttv_gpio_tracking(struct bttv *btv, char *comment); | 316 | extern void bttv_gpio_tracking(struct bttv *btv, char *comment); |
313 | extern int init_bttv_i2c(struct bttv *btv); | ||
314 | 317 | ||
315 | #define dprintk(fmt, ...) \ | 318 | #define dprintk(fmt, ...) \ |
316 | do { \ | 319 | do { \ |