Commit 66c3b96a authored by Jonathan Marek's avatar Jonathan Marek Committed by Mark Brown

regulator: set of_node for qcom vbus regulator

This allows the regulator to be found by devm_regulator_get().

Fixes: 4fe66d5a ("regulator: Add support for QCOM PMIC VBUS booster")
Signed-off-by: default avatarJonathan Marek <jonathan@marek.ca>
Link: https://lore.kernel.org/r/20200818162508.5246-1-jonathan@marek.caSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 20638181
...@@ -63,6 +63,7 @@ static int qcom_usb_vbus_regulator_probe(struct platform_device *pdev) ...@@ -63,6 +63,7 @@ static int qcom_usb_vbus_regulator_probe(struct platform_device *pdev)
qcom_usb_vbus_rdesc.enable_mask = OTG_EN; qcom_usb_vbus_rdesc.enable_mask = OTG_EN;
config.dev = dev; config.dev = dev;
config.init_data = init_data; config.init_data = init_data;
config.of_node = dev->of_node;
config.regmap = regmap; config.regmap = regmap;
rdev = devm_regulator_register(dev, &qcom_usb_vbus_rdesc, &config); rdev = devm_regulator_register(dev, &qcom_usb_vbus_rdesc, &config);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment