projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16b63e
)
greybus: raw: move module_{init|exit} to the end of functions
author
Viresh Kumar
<viresh.kumar@linaro.org>
Wed, 20 May 2015 11:24:22 +0000
(16:54 +0530)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Thu, 21 May 2015 05:43:05 +0000
(22:43 -0700)
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>
drivers/staging/greybus/raw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/raw.c
b/drivers/staging/greybus/raw.c
index 515c1877bc7fea8de5e0eaa8cd1b995bfecb86c7..d93d052a8a7e87abdf5aad85f43dfcae2736f551 100644
(file)
--- a/
drivers/staging/greybus/raw.c
+++ b/
drivers/staging/greybus/raw.c
@@
-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");