Skip to content
Commit 19c6b544 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: 88pm800: Fix checking whether num_regulator is valid



The code to check whether num_regulator is valid is wrong because it should
iterate all array entries rather than break from the for loop if
pdata->regulators[i] is NULL.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6625d9d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment