Skip to content
Commit 7f2e65a8 authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Wolfram Sang
Browse files

i2c: qcom-cci: Fix error checking in cci_probe()



devm_clk_bulk_get_all() can return zero when no clocks are obtained.
Passing zero to dev_err_probe() is a success which is incorrect.

Fixes: 605efbf4 ("i2c: qcom-cci: Use dev_err_probe in probe function")
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 6c30ac91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment