]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max14577: Fix invalid return value on DT parse success
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 21 Feb 2014 12:12:38 +0000 (13:12 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 22 Feb 2014 02:54:17 +0000 (11:54 +0900)
commitdb61a8b9f7cb9622abfa503efcb5b5fa7850eb99
tree6c0874180a2d4250f96da360cd0687da7ace409f
parent402250cf95fec44f6202322d7ab10798260fdd6b
regulator: max14577: Fix invalid return value on DT parse success

This fixes bug introduced in 5dae2789 (regulator: max14577: Add missing
of_node_put). The DTS parsing function returned number of matched
regulators as success status which then was compared against 0 in probe.

Result was a probe fail after successful parsing the DTS:
max14577-regulator: probe of max14577-regulator failed with error 2

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviwed-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max14577.c