]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: gpio-regulator: fix can't find regulator node in dt
authorFrank Li <Frank.Li@freescale.com>
Mon, 12 Nov 2012 09:59:52 +0000 (17:59 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 13 Nov 2012 07:35:57 +0000 (16:35 +0900)
commitf8a9f757cb425c4784b80b001c7a77c7810b499f
tree3be3134fc9e358b2c381498b5d9422b9b8717434
parentdea05fe66edb4540a53ed6623794c4978315256a
regulator: gpio-regulator: fix can't find regulator node in dt

Need initilize of_node in regulator config when register regulator,
otherwise regulator driver think it is no-dt device.

in regulator_dev_lookup
list_for_each_entry(r, &regulator_list, list)
if (r->dev.parent &&
node == r->dev.of_node)
return r

r->dev.of_noe will be zero if miss config in cfg.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/gpio-regulator.c