[U-Boot] [PATCH 2/3] regulator: lp873x: Fix the return value of ldo_get_enable function

Keerthy j-keerthy at ti.com
Sun Jun 11 05:01:28 UTC 2017


The function wrongly returned an integer while it is supposed to
return boolean. Fix that.

Fixes: 99785de83 ("power: regulator: lp873x: Add regulator support")
Signed-off-by: Keerthy <j-keerthy at ti.com>
---
 drivers/power/regulator/lp873x_regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c
index dcb19ff..149a36d 100644
--- a/drivers/power/regulator/lp873x_regulator.c
+++ b/drivers/power/regulator/lp873x_regulator.c
@@ -263,7 +263,7 @@ static bool ldo_get_enable(struct udevice *dev)
 
 	ret = lp873x_ldo_enable(dev, PMIC_OP_GET, &enable);
 	if (ret)
-		return ret;
+		return false;
 
 	return enable;
 }
-- 
1.9.1



More information about the U-Boot mailing list