greybus: es2: fix arpc return value
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 13 Jul 2016 14:34:00 +0000 (09:34 -0500)
committerAlex Elder <elder@linaro.org>
Wed, 13 Jul 2016 14:44:05 +0000 (09:44 -0500)
commit34873949885ad66f9bc6ad6baff78aed4846c092
tree24c4aece60448d689c61be5a72ced907270a61a4
parentc14118a8411c4d7ad1dd6dd501beb33ae1268b08
greybus: es2: fix arpc return value

ARPC should return 0 on success, but instead was returning the number of
jiffies left until the timeout.

This caused cport_reset() to report an error and an incorrect error
message to be printed when disabling a connection.

Reported-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: Alex Elder <elder@linaro.org>
Signed-off-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/es2.c