]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: return err value for regulator_get if there is no DT binding
authorNishanth Menon <nm@ti.com>
Tue, 16 Apr 2013 21:45:16 +0000 (16:45 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 13:58:17 +0000 (14:58 +0100)
commit438bda4f67545067486853bd972040a3880bc2a9
treeff314a75ecf106aef718f1160d2dd9064ca7ebb9
parent53c6f2856b193da35aac7c7efafbd0773b79bdf9
regulator: core: return err value for regulator_get if there is no DT binding

commit 4a197e97d39ad7c95a7c3b4af4c2bb09961b24c2
(regulator: core: Don't defer probe if there's no DT binding for a supply)

Attempted to differentiate between regulator_get() with an actual
DT binding for the supply and when there is none to avoid unnecessary
deferal.
However, ret value supplied by regulator_dev_lookup() is being
ignored by regulator_get(). So, exit with the appropriate return value.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c