]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: protocol: switch gb_protocol_register() to return an int
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 23 Dec 2014 23:16:51 +0000 (15:16 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 05:02:20 +0000 (21:02 -0800)
commit7c7d5b9a942eea5ae450487d47a95c1d0f9a4e64
tree88829bf9cd18031233255c0ab3287fe7b8947750
parent86cad66677942601941c2b516ece2f5741123eda
greybus: protocol: switch gb_protocol_register() to return an int

We will want to return this value as a return value for module_init()
and bool does not play well with module_init().  So make it a "real"
error value and return int and fix up all callers of the function.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/pwm-gb.c
drivers/staging/greybus/sdio-gb.c
drivers/staging/greybus/uart-gb.c
drivers/staging/greybus/usb-gb.c
drivers/staging/greybus/vibrator-gb.c