Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357247
b: refs/heads/master
c: 8303dc9
h: refs/heads/master
i:
  357245: b0bf74c
  357243: 7094ece
  357239: eea8495
  357231: 5b07e07
  357215: e87a9d7
  357183: f580142
  357119: 23e2d64
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 4, 2013
1 parent 3478bfe commit 5c07846
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 8cd7085ff460ead3aba6174052a408f4ad52ac36
refs/heads/master: 8303dc9952758ab3060a3ee9a19ecb6fec83c600
20 changes: 11 additions & 9 deletions trunk/drivers/media/usb/em28xx/em28xx-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,17 @@ static int em28xx_ir_init(struct em28xx *dev)
int err = -ENOMEM;
u64 rc_type;

if (dev->board.has_snapshot_button)
em28xx_register_snapshot_button(dev);

if (dev->board.has_ir_i2c) {
em28xx_register_i2c_ir(dev);
#if defined(CONFIG_MODULES) && defined(MODULE)
request_module("ir-kbd-i2c");
#endif
return 0;
}

if (dev->board.ir_codes == NULL) {
/* No remote control support */
em28xx_warn("Remote control support is not available for "
Expand Down Expand Up @@ -663,15 +674,6 @@ static int em28xx_ir_init(struct em28xx *dev)
if (err)
goto error;

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;

error:
Expand Down

0 comments on commit 5c07846

Please sign in to comment.