mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
regulator: set of_node for qcom vbus regulator
This allows the regulator to be found by devm_regulator_get().
Fixes: 4fe66d5a62
("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>
This commit is contained in:
parent
2063818114
commit
66c3b96a7b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user