diff options
-rw-r--r-- | drivers/media/IR/ir-nec-decoder.c | 2 | ||||
-rw-r--r-- | drivers/media/IR/ir-raw-event.c | 4 | ||||
-rw-r--r-- | drivers/media/IR/ir-rc5-decoder.c | 2 | ||||
-rw-r--r-- | drivers/media/IR/rc-map.c | 3 |
4 files changed, 4 insertions, 7 deletions
diff --git a/drivers/media/IR/ir-nec-decoder.c b/drivers/media/IR/ir-nec-decoder.c index 9d1ada95aa72..18918e52c0c0 100644 --- a/drivers/media/IR/ir-nec-decoder.c +++ b/drivers/media/IR/ir-nec-decoder.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | /* Used to register nec_decoder clients */ | 26 | /* Used to register nec_decoder clients */ |
27 | static LIST_HEAD(decoder_list); | 27 | static LIST_HEAD(decoder_list); |
28 | static spinlock_t decoder_lock; | 28 | static DEFINE_SPINLOCK(decoder_lock); |
29 | 29 | ||
30 | enum nec_state { | 30 | enum nec_state { |
31 | STATE_INACTIVE, | 31 | STATE_INACTIVE, |
diff --git a/drivers/media/IR/ir-raw-event.c b/drivers/media/IR/ir-raw-event.c index 57990a337922..ddb3365adc82 100644 --- a/drivers/media/IR/ir-raw-event.c +++ b/drivers/media/IR/ir-raw-event.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | /* Used to handle IR raw handler extensions */ | 22 | /* Used to handle IR raw handler extensions */ |
23 | static LIST_HEAD(ir_raw_handler_list); | 23 | static LIST_HEAD(ir_raw_handler_list); |
24 | static spinlock_t ir_raw_handler_lock; | 24 | static DEFINE_SPINLOCK(ir_raw_handler_lock); |
25 | 25 | ||
26 | /** | 26 | /** |
27 | * RUN_DECODER() - runs an operation on all IR decoders | 27 | * RUN_DECODER() - runs an operation on all IR decoders |
@@ -205,8 +205,6 @@ static void init_decoders(struct work_struct *work) | |||
205 | 205 | ||
206 | void ir_raw_init(void) | 206 | void ir_raw_init(void) |
207 | { | 207 | { |
208 | spin_lock_init(&ir_raw_handler_lock); | ||
209 | |||
210 | #ifdef MODULE | 208 | #ifdef MODULE |
211 | INIT_WORK(&wq_load, init_decoders); | 209 | INIT_WORK(&wq_load, init_decoders); |
212 | schedule_work(&wq_load); | 210 | schedule_work(&wq_load); |
diff --git a/drivers/media/IR/ir-rc5-decoder.c b/drivers/media/IR/ir-rc5-decoder.c index a62277b625a8..6323066438b5 100644 --- a/drivers/media/IR/ir-rc5-decoder.c +++ b/drivers/media/IR/ir-rc5-decoder.c | |||
@@ -29,7 +29,7 @@ static unsigned int ir_rc5_remote_gap = 888888; | |||
29 | 29 | ||
30 | /* Used to register rc5_decoder clients */ | 30 | /* Used to register rc5_decoder clients */ |
31 | static LIST_HEAD(decoder_list); | 31 | static LIST_HEAD(decoder_list); |
32 | static spinlock_t decoder_lock; | 32 | static DEFINE_SPINLOCK(decoder_lock); |
33 | 33 | ||
34 | enum rc5_state { | 34 | enum rc5_state { |
35 | STATE_INACTIVE, | 35 | STATE_INACTIVE, |
diff --git a/drivers/media/IR/rc-map.c b/drivers/media/IR/rc-map.c index 2f6201ce1898..ff185c054267 100644 --- a/drivers/media/IR/rc-map.c +++ b/drivers/media/IR/rc-map.c | |||
@@ -17,8 +17,7 @@ | |||
17 | 17 | ||
18 | /* Used to handle IR raw handler extensions */ | 18 | /* Used to handle IR raw handler extensions */ |
19 | static LIST_HEAD(rc_map_list); | 19 | static LIST_HEAD(rc_map_list); |
20 | static spinlock_t rc_map_lock; | 20 | static DEFINE_SPINLOCK(rc_map_lock); |
21 | |||
22 | 21 | ||
23 | static struct rc_keymap *seek_rc_map(const char *name) | 22 | static struct rc_keymap *seek_rc_map(const char *name) |
24 | { | 23 | { |