diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-05-20 11:50:10 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-21 05:44:37 (GMT) |
commit | bdac599c70409bbf48e77971e2b9ecc2a66ef151 (patch) | |
tree | e6bdc8ce7d41a77c0ba61578d54bddd375ce8aef /drivers/staging/greybus/spi.c | |
parent | 27551b1d5f9bc99881915adc558c2c6113846a40 (diff) | |
download | linux-bdac599c70409bbf48e77971e2b9ecc2a66ef151.tar.xz |
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/spi.c')
-rw-r--r-- | drivers/staging/greybus/spi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index a8fb04a..430c3ad 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -348,12 +348,4 @@ static struct gb_protocol spi_protocol = { .request_recv = NULL, }; -int gb_spi_protocol_init(void) -{ - return gb_protocol_register(&spi_protocol); -} - -void gb_spi_protocol_exit(void) -{ - gb_protocol_deregister(&spi_protocol); -} +gb_gpbridge_protocol_driver(spi_protocol); |