public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rename ccg init and exit functions to conventional names
@ 2012-10-15 16:54 Constantine Shulyupin
  0 siblings, 0 replies; only message in thread
From: Constantine Shulyupin @ 2012-10-15 16:54 UTC (permalink / raw)
  To: Greg Kroah-Hartmann, Andrzej Pietrasiewicz, linux-usb,
	linux-kernel
  Cc: Mike Lockwood, Constantine Shulyupin

From: Constantine Shulyupin <const@MakeLinux.com>

Previous names of init and exit functions "init" and "cleanup" are unconventional and are not friendly for source navigation with tags.
New names "ccg_init" and "ccg_exit" are conveninal and source navigation friendly.

Signed-off-by: Constantine Shulyupin <const@MakeLinux.com>
---
 drivers/staging/ccg/ccg.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ccg/ccg.c b/drivers/staging/ccg/ccg.c
index 93e1e2f..ffc5f73 100644
--- a/drivers/staging/ccg/ccg.c
+++ b/drivers/staging/ccg/ccg.c
@@ -1239,7 +1239,7 @@ static int ccg_create_device(struct ccg_dev *dev)
 }
 
 
-static int __init init(void)
+static int __init ccg_init(void)
 {
 	struct ccg_dev *dev;
 	int err;
@@ -1280,13 +1280,13 @@ static int __init init(void)
 
 	return err;
 }
-module_init(init);
+module_init(ccg_init);
 
-static void __exit cleanup(void)
+static void __exit ccg_exit(void)
 {
 	usb_composite_unregister(&ccg_usb_driver);
 	class_destroy(ccg_class);
 	kfree(_ccg_dev);
 	_ccg_dev = NULL;
 }
-module_exit(cleanup);
+module_exit(ccg_exit);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-15 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 16:54 [PATCH] rename ccg init and exit functions to conventional names Constantine Shulyupin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox