#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);
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;
}
EXPORT_SYMBOL_GPL(ir_unregister_map);
-void rc_map_init(void)
-{
- spin_lock_init(&rc_map_lock);
-
-}