V4L/DVB: media/IR: Add missing include file to rc-map.c
[safe/jmp/linux-2.6] / drivers / media / IR / rc-map.c
index ff185c0..46a8f15 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <media/ir-core.h>
 #include <linux/spinlock.h>
+#include <linux/delay.h>
 
 /* Used to handle IR raw handler extensions */
 static LIST_HEAD(rc_map_list);
@@ -37,14 +38,13 @@ static struct rc_keymap *seek_rc_map(const char *name)
 
 struct ir_scancode_table *get_rc_map(const char *name)
 {
-       int rc = 0;
 
        struct rc_keymap *map;
 
        map = seek_rc_map(name);
 #ifdef MODULE
        if (!map) {
-               rc = request_module(name);
+               int rc = request_module(name);
                if (rc < 0) {
                        printk(KERN_ERR "Couldn't load IR keymap %s\n", name);
                        return NULL;
@@ -82,8 +82,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);
-
-}