Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366516
b: refs/heads/master
c: 457ba4c
h: refs/heads/master
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Mar 5, 2013
1 parent 28b40ed commit 457f609
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa563073281d7be6c685a0bb8ca6b2737e00f368
refs/heads/master: 457ba4ce4f435d0b4dd82a0acc6c796e541a2ea7
8 changes: 8 additions & 0 deletions trunk/drivers/media/pci/bt8xx/bttv-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
8 changes: 0 additions & 8 deletions trunk/drivers/media/pci/bt8xx/bttv-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/media/pci/bt8xx/bttvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/* ---------------------------------------------------------- */
Expand All @@ -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 { \
Expand Down

0 comments on commit 457f609

Please sign in to comment.