From: Phong Tran Date: Wed, 27 May 2015 14:31:03 +0000 (+0700) Subject: greybus: svc: use macro for init and exit protocol X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b61fa7bce4acdae51e5b76c358237d1ad5dfdbc5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);