diff options
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv-i2c.c')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-i2c.c | 8 |
1 files changed, 8 insertions, 0 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 | } | ||