As mentioned in kernel coding guidelines.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
error_gpio:
return -EPROTO;
}
+module_init(gpbridge_init);
static void __exit gpbridge_exit(void)
{
gb_pwm_protocol_exit();
gb_gpio_protocol_exit();
}
-
-module_init(gpbridge_init);
module_exit(gpbridge_exit);
MODULE_LICENSE("GPL");
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");