greybus: raw: move module_{init|exit} to the end of functions
This is what coding guidelines say. Lets do it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
c16b63e851
commit
8ba2522fa8
@ -357,6 +357,7 @@ error_chrdev:
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user