From: Viresh Kumar Date: Thu, 19 Mar 2015 11:32:49 +0000 (+0530) Subject: greybus: core: place module_{init|exit}() right below the routines X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1677 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d71aaf288f7e79e7c7ed9893a1b4e28221d1b8d0;p=karo-tx-linux.git greybus: core: place module_{init|exit}() right below the routines To follow coding guidelines a bit :) Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index ee8bba59faab..15408ec61dc3 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -244,6 +244,7 @@ error_bus: return retval; } +module_init(gb_init); static void __exit gb_exit(void) { @@ -252,8 +253,6 @@ static void __exit gb_exit(void) bus_unregister(&greybus_bus_type); gb_debugfs_cleanup(); } - -module_init(gb_init); module_exit(gb_exit); MODULE_LICENSE("GPL");