i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 16 Nov 2020 14:10:58 +0000 (22:10 +0800)
committerWolfram Sang <wsa@kernel.org>
Wed, 2 Dec 2020 15:42:09 +0000 (16:42 +0100)
commite9acf0298c664f825e6f1158f2a97341bf9e03ca
tree598df9087c525b729b63e21e4b6bb0edecc2cd83
parentb65054597872ce3aefbc6a666385eabdf9e288da
i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()

Fix to return the error code from qup_i2c_change_state()
instaed of 0 in qup_i2c_bam_schedule_desc().

Fixes: fbf9921f8b35d9b2 ("i2c: qup: Fix error handling")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-qup.c