summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/vibrator.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-03-24 20:14:28 +0530
committerGreg Kroah-Hartman <greg@kroah.com>2015-03-24 21:00:24 +0100
commit0d34be75878093bef5055311c254ae3ff459fd8f (patch)
tree32511e46538a118f12e92c67ef5848051e2448ec /drivers/staging/greybus/vibrator.c
parent13fe6a9af3d86019a10bdbd3195434e5a795b3b3 (diff)
downloadop-kernel-dev-0d34be75878093bef5055311c254ae3ff459fd8f.zip
op-kernel-dev-0d34be75878093bef5055311c254ae3ff459fd8f.tar.gz
greybus: Greybus: Place module_init/exit() right after respective routines
As mentioned in kernel coding guidelines. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/vibrator.c')
-rw-r--r--drivers/staging/greybus/vibrator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/greybus/vibrator.c b/drivers/staging/greybus/vibrator.c
index c92c69e..2943a9b 100644
--- a/drivers/staging/greybus/vibrator.c
+++ b/drivers/staging/greybus/vibrator.c
@@ -185,14 +185,13 @@ static __init int protocol_init(void)
return gb_protocol_register(&vibrator_protocol);
}
+module_init(protocol_init);
static __exit void protocol_exit(void)
{
gb_protocol_deregister(&vibrator_protocol);
class_unregister(&vibrator_class);
}
-
-module_init(protocol_init);
module_exit(protocol_exit);
MODULE_LICENSE("GPL v2");
OpenPOWER on IntegriCloud