V4L/DVB: ir-core: fix double spinlock init in drivers/media/IR/rc-map.c
authorDavid Härdeman <david@hardeman.nu>
Thu, 15 Apr 2010 21:46:25 +0000 (18:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:46 +0000 (12:57 -0300)
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>
drivers/media/IR/ir-sysfs.c
drivers/media/IR/rc-map.c

index 4c0bc32dcbafec8ddb8b52bea6397ea5eb71ff64..18cab0f59fdd435f2b1b3094c762ee3ab7f6da2b 100644 (file)
@@ -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;
 }
index 1a3f4b123a37a995e3d99fc2f127597d081d1641..caf6a27b08c2f918f0332be010676c23f2cb5821 100644 (file)
@@ -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);
-
-}