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 <tranmanphong@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
ea15a40b32
commit
b61fa7bce4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user