staging: ccg: rename ccg init and exit functions to conventional names
authorConstantine Shulyupin <const@MakeLinux.com>
Mon, 15 Oct 2012 16:54:41 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 22:50:07 +0000 (15:50 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccg/ccg.c

index 93e1e2ffca0c7d953b23fa96f77cac4c7fc1ac57..ffc5f73a5b5b588556cac57ffdb5d7ffb5821b51 100644 (file)
@@ -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);