aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-06-22 19:13:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-22 23:55:04 -0400
commit113f7021497e5203dec3fba05294a6f184852db9 (patch)
treef7ae14b1f40f5e1d1c83817624dccff5f11d4c91 /drivers
parentc0a97efc59c675e10390f61ba62ca2f0474c5206 (diff)
staging: comedi: ni_daq_700: add the module_{init, exit} declarations
The init and exit functions for this module were being declared as global symbols. Add the module_{init,exit} declarations and make the functions static. Also, rename the functions so they have namespace associated with the module. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/ni_daq_700.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c
index e75bdd0850ac..052a05173447 100644
--- a/drivers/staging/comedi/drivers/ni_daq_700.c
+++ b/drivers/staging/comedi/drivers/ni_daq_700.c
@@ -451,7 +451,7 @@ static void __exit exit_dio700_cs(void)
451 pcmcia_unregister_driver(&dio700_cs_driver); 451 pcmcia_unregister_driver(&dio700_cs_driver);
452} 452}
453 453
454int __init init_module(void) 454static int __init dio700_cs_init(void)
455{ 455{
456 int ret; 456 int ret;
457 457
@@ -461,12 +461,14 @@ int __init init_module(void)
461 461
462 return comedi_driver_register(&driver_dio700); 462 return comedi_driver_register(&driver_dio700);
463} 463}
464module_init(dio700_cs_init);
464 465
465void __exit cleanup_module(void) 466static void __exit dio700_cs_exit(void)
466{ 467{
467 exit_dio700_cs(); 468 exit_dio700_cs();
468 comedi_driver_unregister(&driver_dio700); 469 comedi_driver_unregister(&driver_dio700);
469} 470}
471module_exit(dio700_cs_exit);
470 472
471MODULE_AUTHOR("Fred Brooks <nsaspook@nsaspook.com>"); 473MODULE_AUTHOR("Fred Brooks <nsaspook@nsaspook.com>");
472MODULE_DESCRIPTION( 474MODULE_DESCRIPTION(