summaryrefslogtreecommitdiff
path: root/drivers/regulator/mt6315-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/mt6315-regulator.c')
-rw-r--r--drivers/regulator/mt6315-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/mt6315-regulator.c b/drivers/regulator/mt6315-regulator.c
index d49a1534d8e9..fc7654624dd6 100644
--- a/drivers/regulator/mt6315-regulator.c
+++ b/drivers/regulator/mt6315-regulator.c
@@ -69,7 +69,7 @@ static unsigned int mt6315_map_mode(u32 mode)
case MT6315_BUCK_MODE_LP:
return REGULATOR_MODE_IDLE;
default:
- return -EINVAL;
+ return REGULATOR_MODE_INVALID;
}
}