[media] bttv: move fini_bttv_i2c() from bttv-input.c to bttv-i2c.c
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 17 Feb 2013 12:41:29 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 20:11:12 +0000 (17:11 -0300)
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>
drivers/media/pci/bt8xx/bttv-i2c.c
drivers/media/pci/bt8xx/bttv-input.c
drivers/media/pci/bt8xx/bttvp.h

index c63c643ed1f83360bb05586aa21ee003a4a8e4cc..b7c52dc8999c4f9acfb115f7fde26822dd3328a2 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 (0 != btv->i2c_rc)
+               return 0;
+
+       return i2c_del_adapter(&btv->c.i2c_adap);
+}
index 01c71214f9ecf6447bc8cd478423b7e4a2801ed5..f36821367d8d708c24294234a4b58038486476cc 100644 (file)
@@ -415,14 +415,6 @@ void init_bttv_i2c_ir(struct bttv *btv)
 #endif
 }
 
-int fini_bttv_i2c(struct bttv *btv)
-{
-       if (0 != btv->i2c_rc)
-               return 0;
-
-       return i2c_del_adapter(&btv->c.i2c_adap);
-}
-
 int bttv_input_init(struct bttv *btv)
 {
        struct bttv_ir *ir;
index eb13be7ae3f4a82f07ba3083f14a360846625d54..e7910e0ffa05300601757e58edd4b14a008979d9 100644 (file)
@@ -300,6 +300,10 @@ extern int no_overlay;
 /* bttv-input.c                                               */
 
 extern void init_bttv_i2c_ir(struct bttv *btv);
+
+/* ---------------------------------------------------------- */
+/* bttv-i2c.c                                                 */
+extern int init_bttv_i2c(struct bttv *btv);
 extern int fini_bttv_i2c(struct bttv *btv);
 
 /* ---------------------------------------------------------- */
@@ -310,7 +314,6 @@ extern unsigned int bttv_verbose;
 extern unsigned int bttv_debug;
 extern unsigned int bttv_gpio;
 extern void bttv_gpio_tracking(struct bttv *btv, char *comment);
-extern int init_bttv_i2c(struct bttv *btv);
 
 #define dprintk(fmt, ...)                      \
 do {                                           \