Commit bdac599c authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: Use gb_gpbridge_protocol_init()

Start using gb_gpbridge_protocol_init() in gpbridge drivers.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 27551b1d
...@@ -672,12 +672,4 @@ static struct gb_protocol gpio_protocol = { ...@@ -672,12 +672,4 @@ static struct gb_protocol gpio_protocol = {
.request_recv = gb_gpio_request_recv, .request_recv = gb_gpio_request_recv,
}; };
int gb_gpio_protocol_init(void) gb_gpbridge_protocol_driver(gpio_protocol);
{
return gb_protocol_register(&gpio_protocol);
}
void gb_gpio_protocol_exit(void)
{
gb_protocol_deregister(&gpio_protocol);
}
...@@ -529,12 +529,4 @@ static struct gb_protocol hid_protocol = { ...@@ -529,12 +529,4 @@ static struct gb_protocol hid_protocol = {
.request_recv = gb_hid_irq_handler, .request_recv = gb_hid_irq_handler,
}; };
int gb_hid_protocol_init(void) gb_gpbridge_protocol_driver(hid_protocol);
{
return gb_protocol_register(&hid_protocol);
}
void gb_hid_protocol_exit(void)
{
gb_protocol_deregister(&hid_protocol);
}
...@@ -358,12 +358,4 @@ static struct gb_protocol i2c_protocol = { ...@@ -358,12 +358,4 @@ static struct gb_protocol i2c_protocol = {
.request_recv = NULL, /* no incoming requests */ .request_recv = NULL, /* no incoming requests */
}; };
int gb_i2c_protocol_init(void) gb_gpbridge_protocol_driver(i2c_protocol);
{
return gb_protocol_register(&i2c_protocol);
}
void gb_i2c_protocol_exit(void)
{
gb_protocol_deregister(&i2c_protocol);
}
...@@ -246,12 +246,4 @@ static struct gb_protocol pwm_protocol = { ...@@ -246,12 +246,4 @@ static struct gb_protocol pwm_protocol = {
.request_recv = NULL, /* no incoming requests */ .request_recv = NULL, /* no incoming requests */
}; };
int gb_pwm_protocol_init(void) gb_gpbridge_protocol_driver(pwm_protocol);
{
return gb_protocol_register(&pwm_protocol);
}
void gb_pwm_protocol_exit(void)
{
gb_protocol_deregister(&pwm_protocol);
}
...@@ -88,12 +88,4 @@ static struct gb_protocol sdio_protocol = { ...@@ -88,12 +88,4 @@ static struct gb_protocol sdio_protocol = {
.request_recv = NULL, /* no incoming requests */ .request_recv = NULL, /* no incoming requests */
}; };
int gb_sdio_protocol_init(void) gb_gpbridge_protocol_driver(sdio_protocol);
{
return gb_protocol_register(&sdio_protocol);
}
void gb_sdio_protocol_exit(void)
{
gb_protocol_deregister(&sdio_protocol);
}
...@@ -348,12 +348,4 @@ static struct gb_protocol spi_protocol = { ...@@ -348,12 +348,4 @@ static struct gb_protocol spi_protocol = {
.request_recv = NULL, .request_recv = NULL,
}; };
int gb_spi_protocol_init(void) gb_gpbridge_protocol_driver(spi_protocol);
{
return gb_protocol_register(&spi_protocol);
}
void gb_spi_protocol_exit(void)
{
gb_protocol_deregister(&spi_protocol);
}
...@@ -745,12 +745,4 @@ static struct gb_protocol uart_protocol = { ...@@ -745,12 +745,4 @@ static struct gb_protocol uart_protocol = {
.request_recv = NULL, /* FIXME we have 2 types of requests!!! */ .request_recv = NULL, /* FIXME we have 2 types of requests!!! */
}; };
int gb_uart_protocol_init(void) gb_gpbridge_protocol_driver(uart_protocol);
{
return gb_protocol_register(&uart_protocol);
}
void gb_uart_protocol_exit(void)
{
gb_protocol_deregister(&uart_protocol);
}
...@@ -362,12 +362,4 @@ static struct gb_protocol usb_protocol = { ...@@ -362,12 +362,4 @@ static struct gb_protocol usb_protocol = {
.request_recv = NULL, /* FIXME we have requests!!! */ .request_recv = NULL, /* FIXME we have requests!!! */
}; };
int gb_usb_protocol_init(void) gb_gpbridge_protocol_driver(usb_protocol);
{
return gb_protocol_register(&usb_protocol);
}
void gb_usb_protocol_exit(void)
{
gb_protocol_deregister(&usb_protocol);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment