mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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
1 changed files with 1 additions and 10 deletions
|
@ -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…
Reference in a new issue