regulator: 88pm800: Fix checking whether num_regulator is valid
authorAxel Lin <axel.lin@ingics.com>
Sun, 4 Aug 2013 01:23:28 +0000 (09:23 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 13 Aug 2013 10:19:05 +0000 (11:19 +0100)
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: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found