Commit 8ba2522f authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: raw: move module_{init|exit} to the end of functions

This is what coding guidelines say. Lets do it.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c16b63e8
......@@ -357,6 +357,7 @@ static int raw_init(void)
error_class:
return retval;
}
module_init(raw_init);
static void __exit raw_exit(void)
{
......@@ -364,8 +365,6 @@ static void __exit raw_exit(void)
unregister_chrdev_region(MKDEV(raw_major, 0), NUM_MINORS);
class_destroy(raw_class);
}
module_init(raw_init);
module_exit(raw_exit);
MODULE_LICENSE("GPL v2");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment