regulator: core: Add of_node_get to of_regulator_match
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 3 Apr 2014 14:32:15 +0000 (15:32 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:01:24 +0000 (17:01 +0100)
commitbd0dda744cdfb93a1907091c4540764593a28fa2
treeeeb9e2240bf1df9783956089663b4538cbe2180e
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
regulator: core: Add of_node_get to of_regulator_match

Currently, of_regulator_match does not increment the reference count of
the of_nodes it takes new references to. This could cause the node
pointer held to be invalid, by the time it is passed to the regulator
core. This patchs adds an of_node_get when we copy each of_node pointer
into the match structure.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/of_regulator.c
This page took 0.026225 seconds and 5 git commands to generate.