From: Viresh Kumar Date: Wed, 1 Jul 2015 06:43:53 +0000 (+0530) Subject: greybus: control: Use gb_builtin_protocol_driver() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=463e8736a3a5038732f681a7f1e9f6975d25b3fd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: control: Use gb_builtin_protocol_driver() No need to write simple init/exit routines, use gb_builtin_protocol_driver(). Signed-off-by: Viresh Kumar Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index c19814d311ec..d7870fc83ed2 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/staging/greybus/control.c @@ -138,13 +138,4 @@ static struct gb_protocol control_protocol = { .connection_exit = gb_control_connection_exit, .request_recv = gb_control_request_recv, }; - -int gb_control_protocol_init(void) -{ - return gb_protocol_register(&control_protocol); -} - -void gb_control_protocol_exit(void) -{ - gb_protocol_deregister(&control_protocol); -} +gb_builtin_protocol_driver(control_protocol);