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:
parent
df17aa9fb3
commit
7d5ec335f9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue