diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-01-29 19:22:57 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-30 07:39:56 -0500 |
commit | 00cea31f0f0f74ea9d30190e9a7cedb6a29727a9 (patch) | |
tree | bef5c3292c5f6784fffe0f95e4412836cded7798 /drivers/regulator | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
regulator: qcom-rpm: Make it possible to specify supply
Make it possible to specify the supply of a regulator, through the
vin-supply property in dt.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/qcom_rpm-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c index 8364ff331a81..10e26236eeb1 100644 --- a/drivers/regulator/qcom_rpm-regulator.c +++ b/drivers/regulator/qcom_rpm-regulator.c | |||
@@ -674,6 +674,7 @@ static int rpm_reg_probe(struct platform_device *pdev) | |||
674 | vreg->desc.owner = THIS_MODULE; | 674 | vreg->desc.owner = THIS_MODULE; |
675 | vreg->desc.type = REGULATOR_VOLTAGE; | 675 | vreg->desc.type = REGULATOR_VOLTAGE; |
676 | vreg->desc.name = pdev->dev.of_node->name; | 676 | vreg->desc.name = pdev->dev.of_node->name; |
677 | vreg->desc.supply_name = "vin"; | ||
677 | 678 | ||
678 | vreg->rpm = dev_get_drvdata(pdev->dev.parent); | 679 | vreg->rpm = dev_get_drvdata(pdev->dev.parent); |
679 | if (!vreg->rpm) { | 680 | if (!vreg->rpm) { |