diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-05-20 17:20:10 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-20 22:44:37 -0700 |
commit | bdac599c70409bbf48e77971e2b9ecc2a66ef151 (patch) | |
tree | e6bdc8ce7d41a77c0ba61578d54bddd375ce8aef /drivers/staging/greybus/hid.c | |
parent | 27551b1d5f9bc99881915adc558c2c6113846a40 (diff) | |
download | op-kernel-dev-bdac599c70409bbf48e77971e2b9ecc2a66ef151.zip op-kernel-dev-bdac599c70409bbf48e77971e2b9ecc2a66ef151.tar.gz |
greybus: Use gb_gpbridge_protocol_init()
Start using gb_gpbridge_protocol_init() in gpbridge drivers.
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/hid.c')
-rw-r--r-- | drivers/staging/greybus/hid.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c index 00dc7e5..2f6e68c 100644 --- a/drivers/staging/greybus/hid.c +++ b/drivers/staging/greybus/hid.c @@ -529,12 +529,4 @@ static struct gb_protocol hid_protocol = { .request_recv = gb_hid_irq_handler, }; -int gb_hid_protocol_init(void) -{ - return gb_protocol_register(&hid_protocol); -} - -void gb_hid_protocol_exit(void) -{ - gb_protocol_deregister(&hid_protocol); -} +gb_gpbridge_protocol_driver(hid_protocol); |