提交 8d64c32b 编写于 作者: C Constantine Shulyupin 提交者: Greg Kroah-Hartman

staging: ccg: rename ccg init and exit functions to conventional names

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: NConstantine Shulyupin <const@MakeLinux.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6b8c8773
...@@ -1239,7 +1239,7 @@ static int ccg_create_device(struct ccg_dev *dev) ...@@ -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; struct ccg_dev *dev;
int err; int err;
...@@ -1280,13 +1280,13 @@ static int __init init(void) ...@@ -1280,13 +1280,13 @@ static int __init init(void)
return err; 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); usb_composite_unregister(&ccg_usb_driver);
class_destroy(ccg_class); class_destroy(ccg_class);
kfree(_ccg_dev); kfree(_ccg_dev);
_ccg_dev = NULL; _ccg_dev = NULL;
} }
module_exit(cleanup); module_exit(ccg_exit);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册