diff options
author | Mauro Carvalho Chehab | 2012-10-27 18:00:58 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2012-10-27 22:05:22 +0200 |
commit | 6860f9ca8ce2ef801edee2156cffaf5152bd3c39 (patch) | |
tree | 4ff7d4abaa31813eab948d16ede4367988518f63 /drivers/media/pci/mantis/mantis_input.c | |
parent | [media] ivtv-ioctl.c: remove an useless check (diff) | |
download | kernel-qcow2-linux-6860f9ca8ce2ef801edee2156cffaf5152bd3c39.tar.gz kernel-qcow2-linux-6860f9ca8ce2ef801edee2156cffaf5152bd3c39.tar.xz kernel-qcow2-linux-6860f9ca8ce2ef801edee2156cffaf5152bd3c39.zip |
[media] mantis: get rid of warning: no previous prototype
drivers/media/pci/mantis/mantis_input.c:107:5: warning: no previous prototype for 'mantis_input_init' [-Wmissing-prototypes]
drivers/media/pci/mantis/mantis_input.c:153:5: warning: no previous prototype for 'mantis_exit' [-Wmissing-prototypes]
drivers/media/pci/mantis/mantis_uart.c:64:5: warning: no previous prototype for 'mantis_uart_read' [-Wmissing-prototypes]
drivers/media/pci/mantis/mantis_vp1033.c:118:5: warning: no previous prototype for 'lgtdqcs001f_set_symbol_rate' [-Wmissing-prototypes]
drivers/media/pci/mantis/mantis_vp1033.c:86:5: warning: no previous prototype for 'lgtdqcs001f_tuner_set' [-Wmissing-prototypes]
Note: there is already a mantis_exit at the mantis driver. So,
this should be renamed to mantis_input_exit.
The mantis_input code is currently unused, as it doesn't implement the RC API
right.
Patches for it are sent for discussions, but were never
accepted. So, while this is not fixed, the entire code inside
mantis_input can simply be commented.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/mantis/mantis_input.c')
-rw-r--r-- | drivers/media/pci/mantis/mantis_input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/pci/mantis/mantis_input.c b/drivers/media/pci/mantis/mantis_input.c index db6d54d3fec0..0e5252e5c0ef 100644 --- a/drivers/media/pci/mantis/mantis_input.c +++ b/drivers/media/pci/mantis/mantis_input.c @@ -18,6 +18,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#if 0 /* Currently unused */ + #include <media/rc-core.h> #include <linux/pci.h> @@ -150,10 +152,11 @@ out: return err; } -int mantis_exit(struct mantis_pci *mantis) +int mantis_init_exit(struct mantis_pci *mantis) { rc_unregister_device(mantis->rc); rc_map_unregister(&ir_mantis_map); return 0; } +#endif |