Skip to content

Commit

Permalink
V4L/DVB: ir-core: fix double spinlock init in drivers/media/IR/rc-map.c
Browse files Browse the repository at this point in the history
Fix a double initialization of the same spinlock in drivers/media/IR/rc-map.c.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
David Härdeman authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 15100d8 commit d468443
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions drivers/media/IR/ir-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ static int __init ir_core_init(void)

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


return 0;
}
Expand Down
5 changes: 0 additions & 5 deletions drivers/media/IR/rc-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,3 @@ void ir_unregister_map(struct rc_keymap *map)
}
EXPORT_SYMBOL_GPL(ir_unregister_map);

void rc_map_init(void)
{
spin_lock_init(&rc_map_lock);

}

0 comments on commit d468443

Please sign in to comment.