From 8ba2522fa8397c894c2d42ed3461e23862ea6a45 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 20 May 2015 16:54:22 +0530 Subject: [PATCH] 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 --- drivers/staging/greybus/raw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); -- 2.20.1