]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/qcom_rpm-regulator.c
Merge remote-tracking branches 'regulator/topic/max8649', 'regulator/topic/mode'...
[karo-tx-linux.git] / drivers / regulator / qcom_rpm-regulator.c
index 8364ff331a81838c6e84fe822b17d434bfb74aa7..7678944f83f6b98b00cf822e7360966497230161 100644 (file)
@@ -674,6 +674,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
        vreg->desc.owner = THIS_MODULE;
        vreg->desc.type = REGULATOR_VOLTAGE;
        vreg->desc.name = pdev->dev.of_node->name;
+       vreg->desc.supply_name = "vin";
 
        vreg->rpm = dev_get_drvdata(pdev->dev.parent);
        if (!vreg->rpm) {
@@ -768,7 +769,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
                        break;
                }
 
-               if (force_mode < 0) {
+               if (force_mode == -1) {
                        dev_err(&pdev->dev, "invalid force mode\n");
                        return -EINVAL;
                }