dm: power: Use debug() for errors in regulator uclass
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:39:00 +0000 (15:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:26 +0000 (17:39 -0600)
commit59c26a9c22cecf7404fc0d1db0264c6a911141dc
treeabe91f30a49af50178bc8fd679b160ccb769f971
parent083fc83a4e1187a3f42575c8e3df089d3be622ad
dm: power: Use debug() for errors in regulator uclass

To reduce unnecessary code size in an uncommon code path, use debug()
where possible(). The driver returns an error which indicates failure.

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