From 463e8736a3a5038732f681a7f1e9f6975d25b3fd Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 1 Jul 2015 12:13:53 +0530 Subject: [PATCH] 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 --- drivers/staging/greybus/control.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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);