diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-08 19:04:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 12:57:14 -0300 |
commit | 5fa2989f78a381ccc1cde219f0a3da942d6c1680 (patch) | |
tree | 59447ef80aba0af86d26f49133b59358a0da8c3a /drivers/media/IR/ir-raw-event.c | |
parent | dab7e3106ddd6cbc3b55301228407b9d17ce7773 (diff) |
V4L/DVB: ir-core: Remove warining noise if decoders compiled builtin
drivers/media/IR/ir-raw-event.c:55: warning: ‘wq_load’ defined but not used
drivers/media/IR/ir-raw-event.c:222: warning: ‘init_decoders’ defined but not used
drivers/media/IR/rc-map.c: In function ‘get_rc_map’:
drivers/media/IR/rc-map.c:40: warning: unused variable ‘rc’
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-raw-event.c')
-rw-r--r-- | drivers/media/IR/ir-raw-event.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-raw-event.c b/drivers/media/IR/ir-raw-event.c index 6a4445e5db1..b49d01256be 100644 --- a/drivers/media/IR/ir-raw-event.c +++ b/drivers/media/IR/ir-raw-event.c @@ -50,9 +50,10 @@ static DEFINE_SPINLOCK(ir_raw_handler_lock); _sumrc; \ }) - +#ifdef MODULE /* Used to load the decoders */ static struct work_struct wq_load; +#endif static void ir_raw_event_work(struct work_struct *work) { @@ -218,6 +219,7 @@ void ir_raw_handler_unregister(struct ir_raw_handler *ir_raw_handler) } EXPORT_SYMBOL(ir_raw_handler_unregister); +#ifdef MODULE static void init_decoders(struct work_struct *work) { /* Load the decoder modules */ @@ -229,6 +231,7 @@ static void init_decoders(struct work_struct *work) it is needed to change the CONFIG_MODULE test at ir-core.h */ } +#endif void ir_raw_init(void) { |