aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/qcom_rpm-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c
index 8364ff331a81..3ab65c62fdd5 100644
--- a/drivers/regulator/qcom_rpm-regulator.c
+++ b/drivers/regulator/qcom_rpm-regulator.c
@@ -768,7 +768,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
768 break; 768 break;
769 } 769 }
770 770
771 if (force_mode < 0) { 771 if (force_mode == -1) {
772 dev_err(&pdev->dev, "invalid force mode\n"); 772 dev_err(&pdev->dev, "invalid force mode\n");
773 return -EINVAL; 773 return -EINVAL;
774 } 774 }