Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
[firefly-linux-kernel-4.4.55.git] / drivers / media / pci / bt8xx / bttv-i2c.c
index c63c643ed1f83360bb05586aa21ee003a4a8e4cc..d43911deb617a97a78348bc5e7bdb5f6ee1bf265 100644 (file)
@@ -394,3 +394,11 @@ int init_bttv_i2c(struct bttv *btv)
 
        return btv->i2c_rc;
 }
+
+int fini_bttv_i2c(struct bttv *btv)
+{
+       if (btv->i2c_rc == 0)
+               i2c_del_adapter(&btv->c.i2c_adap);
+
+       return 0;
+}