From b61fa7bce4acdae51e5b76c358237d1ad5dfdbc5 Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Wed, 27 May 2015 21:31:03 +0700 Subject: [PATCH] greybus: svc: use macro for init and exit protocol Change to gb_gpbridge_protocol_driver for making the consitent with other drivers. Signed-off-by: Phong Tran Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/svc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index ffbeac57769d..4dc10e3778c4 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -245,12 +245,4 @@ static struct gb_protocol svc_protocol = { .request_recv = gb_svc_request_recv, }; -int gb_svc_protocol_init(void) -{ - return gb_protocol_register(&svc_protocol); -} - -void gb_svc_protocol_exit(void) -{ - gb_protocol_deregister(&svc_protocol); -} +gb_gpbridge_protocol_driver(svc_protocol); -- 2.20.1