Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295105
b: refs/heads/master
c: 5da6e98
h: refs/heads/master
i:
  295103: 2372812
v: v3
  • Loading branch information
Ezequiel García authored and Mauro Carvalho Chehab committed Mar 20, 2012
1 parent b37b97e commit 33f3c7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 593a2ce0ae22188538d27933236a6acab57a0e65
refs/heads/master: 5da6e984805786c4d96498e1c51e971007dea6dc
9 changes: 7 additions & 2 deletions trunk/drivers/media/rc/rc-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ EXPORT_SYMBOL_GPL(rc_free_device);

int rc_register_device(struct rc_dev *dev)
{
static bool raw_init = false; /* raw decoders loaded? */
static atomic_t devno = ATOMIC_INIT(0);
struct rc_map *rc_map;
const char *path;
Expand Down Expand Up @@ -1103,6 +1104,12 @@ int rc_register_device(struct rc_dev *dev)
kfree(path);

if (dev->driver_type == RC_DRIVER_IR_RAW) {
/* Load raw decoders, if they aren't already */
if (!raw_init) {
IR_dprintk(1, "Loading raw decoders\n");
ir_raw_init();
raw_init = true;
}
rc = ir_raw_event_register(dev);
if (rc < 0)
goto out_input;
Expand Down Expand Up @@ -1176,8 +1183,6 @@ static int __init rc_core_init(void)
return rc;
}

/* Initialize/load the decoders/keymap code that will be used */
ir_raw_init();
rc_map_register(&empty_map);

return 0;
Expand Down

0 comments on commit 33f3c7f

Please sign in to comment.