Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306151
b: refs/heads/master
c: 2fd6f8d
h: refs/heads/master
i:
  306149: 048d546
  306147: 05d0031
  306143: 26ba232
v: v3
  • Loading branch information
Ezequiel García authored and Mauro Carvalho Chehab committed Apr 10, 2012
1 parent 309b1b4 commit ad939aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 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: 37e65dceccf1b556afc17328fbdd782693807af9
refs/heads/master: 2fd6f8d15371686e3fee87d6119cab9bc4d76349
10 changes: 0 additions & 10 deletions trunk/drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -2849,13 +2849,6 @@ void em28xx_card_setup(struct em28xx *dev)
break;
}

#if defined(CONFIG_MODULES) && defined(MODULE)
if (dev->board.has_ir_i2c && !disable_ir)
request_module("ir-kbd-i2c");
#endif
if (dev->board.has_snapshot_button)
em28xx_register_snapshot_button(dev);

if (dev->board.valid == EM28XX_BOARD_NOT_VALIDATED) {
em28xx_errdev("\n\n");
em28xx_errdev("The support for this board weren't "
Expand Down Expand Up @@ -2972,9 +2965,6 @@ static void flush_request_modules(struct em28xx *dev)
*/
void em28xx_release_resources(struct em28xx *dev)
{
if (dev->sbutton_input_dev)
em28xx_deregister_snapshot_button(dev);

if (dev->ir)
em28xx_ir_fini(dev);

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/media/video/em28xx/em28xx-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,6 @@ int em28xx_i2c_register(struct em28xx *dev)
if (i2c_scan)
em28xx_do_i2c_scan(dev);

/* Instantiate the IR receiver device, if present */
em28xx_register_i2c_ir(dev);

return 0;
}

Expand Down
11 changes: 11 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,15 @@ int em28xx_ir_init(struct em28xx *dev)
if (err)
goto err_out_stop;

em28xx_register_i2c_ir(dev);

#if defined(CONFIG_MODULES) && defined(MODULE)
if (dev->board.has_ir_i2c)
request_module("ir-kbd-i2c");
#endif
if (dev->board.has_snapshot_button)
em28xx_register_snapshot_button(dev);

return 0;

err_out_stop:
Expand All @@ -462,6 +471,8 @@ int em28xx_ir_fini(struct em28xx *dev)
{
struct em28xx_IR *ir = dev->ir;

em28xx_deregister_snapshot_button(dev);

/* skip detach on non attached boards */
if (!ir)
return 0;
Expand Down

0 comments on commit ad939aa

Please sign in to comment.