Skip to content
Snippets Groups Projects
Verified Commit 6b929e9f authored by Dan Carpenter's avatar Dan Carpenter Committed by Caleb Connolly
Browse files

button: qcom-pmic: fix some error checking


The pmic_reg_read() function can return errors.  Add a check for that.

Fixes: 4e8aa006 ("button: qcom-pmic: introduce Qualcomm PMIC button driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: default avatarSumit Garg <sumit.garg@linaro.org>
parent 37345abb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment