Commit 7d5ec335 authored by Peter Chen's avatar Peter Chen

usb: chipidea: imx: change hsic power regulator as optional

Not every platform needs this regulator.
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent df17aa9f
...@@ -359,7 +359,8 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) ...@@ -359,7 +359,8 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
return PTR_ERR(data->pinctrl_hsic_active); return PTR_ERR(data->pinctrl_hsic_active);
} }
data->hsic_pad_regulator = devm_regulator_get(dev, "hsic"); data->hsic_pad_regulator =
devm_regulator_get_optional(dev, "hsic");
if (PTR_ERR(data->hsic_pad_regulator) == -EPROBE_DEFER) { if (PTR_ERR(data->hsic_pad_regulator) == -EPROBE_DEFER) {
return -EPROBE_DEFER; return -EPROBE_DEFER;
} else if (PTR_ERR(data->hsic_pad_regulator) == -ENODEV) { } else if (PTR_ERR(data->hsic_pad_regulator) == -ENODEV) {
......
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