summaryrefslogtreecommitdiff
path: root/drivers/regulator/qcom_usb_vbus-regulator.c
diff options
context:
space:
mode:
authorJonathan Marek <jonathan@marek.ca>2020-08-18 19:25:08 +0300
committerMark Brown <broonie@kernel.org>2020-08-18 20:38:25 +0300
commit66c3b96a7bd042427d2e0eaa8704536828f8235f (patch)
tree24441927492efc323c6343b7fe8d6b8a4fd089ce /drivers/regulator/qcom_usb_vbus-regulator.c
parent2063818114951882df64681c69457bd9137c1880 (diff)
downloadlinux-66c3b96a7bd042427d2e0eaa8704536828f8235f.tar.xz
regulator: set of_node for qcom vbus regulator
This allows the regulator to be found by devm_regulator_get(). Fixes: 4fe66d5a62fb ("regulator: Add support for QCOM PMIC VBUS booster") Signed-off-by: Jonathan Marek <jonathan@marek.ca> Link: https://lore.kernel.org/r/20200818162508.5246-1-jonathan@marek.ca Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/qcom_usb_vbus-regulator.c')
-rw-r--r--drivers/regulator/qcom_usb_vbus-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/qcom_usb_vbus-regulator.c b/drivers/regulator/qcom_usb_vbus-regulator.c
index 8ba947f3585f..457788b50572 100644
--- a/drivers/regulator/qcom_usb_vbus-regulator.c
+++ b/drivers/regulator/qcom_usb_vbus-regulator.c
@@ -63,6 +63,7 @@ static int qcom_usb_vbus_regulator_probe(struct platform_device *pdev)
qcom_usb_vbus_rdesc.enable_mask = OTG_EN;
config.dev = dev;
config.init_data = init_data;
+ config.of_node = dev->of_node;
config.regmap = regmap;
rdev = devm_regulator_register(dev, &qcom_usb_vbus_rdesc, &config);