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

Not every platform needs this regulator.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
Peter Chen 2019-10-10 08:40:46 +08:00
parent df17aa9fb3
commit 7d5ec335f9
No known key found for this signature in database
GPG Key ID: 4859298150D671BB
1 changed files with 2 additions and 1 deletions

View File

@ -359,7 +359,8 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
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) {
return -EPROBE_DEFER;
} else if (PTR_ERR(data->hsic_pad_regulator) == -ENODEV) {