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 <viresh.kumar@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
e18822e3d0
commit
463e8736a3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user