From: Viresh Kumar Date: Wed, 20 May 2015 11:24:22 +0000 (+0530) Subject: greybus: raw: move module_{init|exit} to the end of functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ba2522fa8397c894c2d42ed3461e23862ea6a45;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c index 515c1877bc7f..d93d052a8a7e 100644 --- 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");