diff options
author | Márton Németh <nm127@freemail.hu> | 2009-12-11 18:05:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 06:27:53 -0500 |
commit | 2184dda0d4814fc1baeb6cfa1f82ec8015df88b0 (patch) | |
tree | c1280d681d863573a48cbe245c87289b49f2cfcf /drivers/media/dvb/siano/smsdvb.c | |
parent | 3839a0dc1c012558281878436a5807b9abe9afad (diff) |
V4L/DVB (13683): sanio-ms: clean up init, exit and id_table
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Make module_init static and mark it with __init.
Make module_exit static and mark it with __exit.
Mark probe functions with __devinit.
Make id table static and mark with __devinitconst.
This will eliminate the following sparse warnings (see "make C=1"):
* smsdvb.c:668:5: warning: symbol 'smsdvb_module_init' was not declared. Should it be static?
* smsdvb.c:682:6: warning: symbol 'smsdvb_module_exit' was not declared. Should it be static?
* smsusb.c:491:22: warning: symbol 'smsusb_id_table' was not declared. Should it be static?
* smsusb.c:567:5: warning: symbol 'smsusb_module_init' was not declared. Should it be static?
* smsusb.c:578:6: warning: symbol 'smsusb_module_exit' was not declared. Should it be static?
* smssdio.c:341:5: warning: symbol 'smssdio_module_init' was not declared. Should it be static?
* smssdio.c:353:6: warning: symbol 'smssdio_module_exit' was not declared. Should it be static?
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/siano/smsdvb.c')
-rw-r--r-- | drivers/media/dvb/siano/smsdvb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c index 266033ae278..68bf9fbd8fe 100644 --- a/drivers/media/dvb/siano/smsdvb.c +++ b/drivers/media/dvb/siano/smsdvb.c | |||
@@ -662,7 +662,7 @@ adapter_error: | |||
662 | return rc; | 662 | return rc; |
663 | } | 663 | } |
664 | 664 | ||
665 | int smsdvb_module_init(void) | 665 | static int __init smsdvb_module_init(void) |
666 | { | 666 | { |
667 | int rc; | 667 | int rc; |
668 | 668 | ||
@@ -676,7 +676,7 @@ int smsdvb_module_init(void) | |||
676 | return rc; | 676 | return rc; |
677 | } | 677 | } |
678 | 678 | ||
679 | void smsdvb_module_exit(void) | 679 | static void __exit smsdvb_module_exit(void) |
680 | { | 680 | { |
681 | smscore_unregister_hotplug(smsdvb_hotplug); | 681 | smscore_unregister_hotplug(smsdvb_hotplug); |
682 | 682 | ||