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/i2c.c | |
parent | 27551b1d5f9bc99881915adc558c2c6113846a40 (diff) |
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/i2c.c')
-rw-r--r-- | drivers/staging/greybus/i2c.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c index 6fdbf1167ecb..14fdea184c39 100644 --- a/drivers/staging/greybus/i2c.c +++ b/drivers/staging/greybus/i2c.c @@ -358,12 +358,4 @@ static struct gb_protocol i2c_protocol = { .request_recv = NULL, /* no incoming requests */ }; -int gb_i2c_protocol_init(void) -{ - return gb_protocol_register(&i2c_protocol); -} - -void gb_i2c_protocol_exit(void) -{ - gb_protocol_deregister(&i2c_protocol); -} +gb_gpbridge_protocol_driver(i2c_protocol); |