greybus: es2: fix error return code in ap_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 19 Oct 2016 13:17:53 +0000 (13:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2016 13:51:00 +0000 (15:51 +0200)
commit1305f2b2f52af5986f44dfbb1a6fe58ae875aa61
treec608d044988da35c40123a7779d83a4108841ae8
parent25633d1f5dd7ea35c77aae12c039a80e46abec01
greybus: es2: fix error return code in ap_probe()

Fix to return a negative error code from the es2_arpc_in_enable() error
handling case instead of 0, as done elsewhere in this function.

Fixes: 9d9d3777a9db ("greybus: es2: Add a new bulk in endpoint for APBridgeA RPC")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/es2.c