Skip to content

Commit

Permalink
staging: ccg: rename ccg init and exit functions to conventional names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Constantine Shulyupin authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 6b8c877 commit 8d64c32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/ccg/ccg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

0 comments on commit 8d64c32

Please sign in to comment.