summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/control.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-01 12:13:53 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-01 16:34:55 -0700
commit463e8736a3a5038732f681a7f1e9f6975d25b3fd (patch)
tree9141f7aeb7969c0e7679d006e48bcf34449088d2 /drivers/staging/greybus/control.c
parente18822e3d02c8f296fe42e0e8bda7e2e626a4714 (diff)
downloadlinux-463e8736a3a5038732f681a7f1e9f6975d25b3fd.tar.gz
linux-463e8736a3a5038732f681a7f1e9f6975d25b3fd.tar.bz2
linux-463e8736a3a5038732f681a7f1e9f6975d25b3fd.zip
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>
Diffstat (limited to 'drivers/staging/greybus/control.c')
-rw-r--r--drivers/staging/greybus/control.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c
index c19814d311ec..d7870fc83ed2 100644
--- a/drivers/staging/greybus/control.c
+++ b/drivers/staging/greybus/control.c
@@ -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);