power: regulator use node name when no regulator-name
authorPeng Fan <Peng.Fan@freescale.com>
Fri, 7 Aug 2015 08:43:42 +0000 (16:43 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:43 +0000 (08:17 +0200)
commit9ab8b0f66bb94c1193529564b114aeb34c2fea01
tree60b9ea9241cb187ee3ad10684a1a97883bf133b0
parentd8a095039f4c7a58925bd2f481c50667af3f8c68
power: regulator use node name when no regulator-name

If there is no property named 'regulator-name' for regulators,
choose node name instead, but not directly return failure value.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
drivers/power/regulator/regulator-uclass.c