diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-07-31 11:59:21 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-08 23:43:00 -0300 |
commit | b378f43fe9466e7712a8b16be64795ffca3a937e (patch) | |
tree | 72b73594094549d049f0dcdd653135f42e3f2b29 /drivers/media/IR/ir-core-priv.h | |
parent | 86ff071cad3e7e4c7469b3941bfced6fe9b04b5f (diff) | |
download | linux-b378f43fe9466e7712a8b16be64795ffca3a937e.tar.gz linux-b378f43fe9466e7712a8b16be64795ffca3a937e.tar.bz2 linux-b378f43fe9466e7712a8b16be64795ffca3a937e.zip |
V4L/DVB: IR: Allow not to compile keymaps in
Currently, ir device registration fails if keymap requested by driver is not found.
Fix that by always compiling in the empty keymap, and using it as a failback.
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-core-priv.h')
-rw-r--r-- | drivers/media/IR/ir-core-priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-core-priv.h b/drivers/media/IR/ir-core-priv.h index 502d477b391c..be6817261c8f 100644 --- a/drivers/media/IR/ir-core-priv.h +++ b/drivers/media/IR/ir-core-priv.h @@ -126,7 +126,8 @@ int ir_raw_handler_register(struct ir_raw_handler *ir_raw_handler); void ir_raw_handler_unregister(struct ir_raw_handler *ir_raw_handler); void ir_raw_init(void); - +int ir_rcmap_init(void); +void ir_rcmap_cleanup(void); /* * Decoder initialization code * |