]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/IR/rc-map.c
V4L/DVB: ir: Make sure that the spinlocks are properly initialized
[net-next-2.6.git] / drivers / media / IR / rc-map.c
index 2f6201ce18988e72f495b5ed0e28ce2a0556b3cd..ff185c054267caef50996594dfffe3f054926122 100644 (file)
@@ -17,8 +17,7 @@
 
 /* Used to handle IR raw handler extensions */
 static LIST_HEAD(rc_map_list);
-static spinlock_t rc_map_lock;
-
+static DEFINE_SPINLOCK(rc_map_lock);
 
 static struct rc_keymap *seek_rc_map(const char *name)
 {