Commit 463e8736 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: control: Use gb_builtin_protocol_driver()

No need to write simple init/exit routines, use
gb_builtin_protocol_driver().
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent e18822e3
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment