greybus: core: place module_{init|exit}() right below the routines
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 19 Mar 2015 11:32:49 +0000 (17:02 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 14:02:28 +0000 (15:02 +0100)
To follow coding guidelines a bit :)

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/core.c

index ee8bba5..15408ec 100644 (file)
@@ -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");