Re: [PATCH] regulator: max14577: Fix invalid return value on DT parse success

2014-02-21 Thread Krzysztof Kozlowski
On Fri, 2014-02-21 at 16:25 +0530, Sachin Kamat wrote: > On 21 February 2014 16:12, Krzysztof Kozlowski > wrote: > > On Fri, 2014-02-21 at 15:54 +0530, Sachin Kamat wrote: > >> Hi Krzysztof, > >> > >> On 20 February 2014 20:49, Krzysztof Kozlowski > >> wrote: > >> > This fixes bug introduced in

Re: [PATCH] regulator: max14577: Fix invalid return value on DT parse success

2014-02-21 Thread Sachin Kamat
On 21 February 2014 16:12, Krzysztof Kozlowski wrote: > On Fri, 2014-02-21 at 15:54 +0530, Sachin Kamat wrote: >> Hi Krzysztof, >> >> On 20 February 2014 20:49, Krzysztof Kozlowski >> wrote: >> > This fixes bug introduced in 667a6b7a (regulator: max14577: Add missing >> > of_node_put). The DTS p

Re: [PATCH] regulator: max14577: Fix invalid return value on DT parse success

2014-02-21 Thread Krzysztof Kozlowski
On Fri, 2014-02-21 at 15:54 +0530, Sachin Kamat wrote: > Hi Krzysztof, > > On 20 February 2014 20:49, Krzysztof Kozlowski > wrote: > > This fixes bug introduced in 667a6b7a (regulator: max14577: Add missing > > of_node_put). The DTS parsing function returned number of matched > > regulators as s

Re: [PATCH] regulator: max14577: Fix invalid return value on DT parse success

2014-02-21 Thread Sachin Kamat
Hi Krzysztof, On 20 February 2014 20:49, Krzysztof Kozlowski wrote: > 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 w

[PATCH] regulator: max14577: Fix invalid return value on DT parse success

2014-02-20 Thread Krzysztof Kozlowski
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