diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-02-21 13:12:38 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 11:54:17 +0900 |
commit | 08221fc4e7aa585a59de90c0354da3e8d3e88d94 (patch) | |
tree | 6c0874180a2d4250f96da360cd0687da7ace409f /include/acpi/pdc_intel.h | |
parent | 6d0abeca3242a88cab8232e4acd7e2bf088f3bc2 (diff) | |
download | op-kernel-dev-08221fc4e7aa585a59de90c0354da3e8d3e88d94.zip op-kernel-dev-08221fc4e7aa585a59de90c0354da3e8d3e88d94.tar.gz |
regulator: max14577: Fix invalid return value on DT parse success
This fixes bug introduced in 667a6b7a (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>
Diffstat (limited to 'include/acpi/pdc_intel.h')
0 files changed, 0 insertions, 0 deletions