From: Krzysztof Kozlowski Date: Fri, 21 Feb 2014 12:12:38 +0000 (+0100) Subject: regulator: max14577: Fix invalid return value on DT parse success X-Git-Tag: v3.14-rc4~2^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08221fc4e7aa585a59de90c0354da3e8d3e88d94;p=pandora-kernel.git 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 Reviwed-by: Sachin Kamat Signed-off-by: Mark Brown --- Reading git-diff-tree failed