aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/pci/bt8xx/bttv-i2c.c
diff options
context:
space:
mode:
authorFrank Schaefer2013-02-17 09:41:29 -0300
committerMauro Carvalho Chehab2013-03-05 17:11:12 -0300
commit457ba4ce4f435d0b4dd82a0acc6c796e541a2ea7 (patch)
tree054418e9f50ace1cd7888c5d8fbf46c921d8f75a /drivers/media/pci/bt8xx/bttv-i2c.c
parentfa563073281d7be6c685a0bb8ca6b2737e00f368 (diff)
[media] bttv: move fini_bttv_i2c() from bttv-input.c to bttv-i2c.c
Like init_bttv_i2c(), fini_bttv_i2c() belongs to bttv-i2c.c. Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv-i2c.c')
-rw-r--r--drivers/media/pci/bt8xx/bttv-i2c.c8
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)
return btv->i2c_rc;
}
+
+int fini_bttv_i2c(struct bttv *btv)
+{
+ if (0 != btv->i2c_rc)
+ return 0;
+
+ return i2c_del_adapter(&btv->c.i2c_adap);
+}