Skip to content
Unverified Commit a4ba2a66 authored by Caleb Connolly's avatar Caleb Connolly
Browse files

serial: msm-geni: handle devm_clk_get() errors



devm_clk_get() returns an ERR_PTR on failure, not null. Fix the check to
avoid the board crashing when the clock isn't available.

Additionally, add the missing error handling for this function.

Fixes: 324df15a ("serial: qcom: add support for GENI serial driver")
Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
parent 836b7f44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment