diff options
author | Peter Chen <peter.chen@nxp.com> | 2019-10-10 08:40:46 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2019-11-18 16:45:30 +0800 |
commit | 7d5ec335f94e74e885ca2f6c97a3479fe9fe3b15 (patch) | |
tree | a8915b7ec2bf93a387b80001d114d203a3d8e429 /drivers/usb | |
parent | df17aa9fb31f6a41aad37b984909d8ef1a958271 (diff) | |
download | linux-stable-7d5ec335f94e74e885ca2f6c97a3479fe9fe3b15.tar.gz linux-stable-7d5ec335f94e74e885ca2f6c97a3479fe9fe3b15.tar.bz2 linux-stable-7d5ec335f94e74e885ca2f6c97a3479fe9fe3b15.zip |
usb: chipidea: imx: change hsic power regulator as optional
Not every platform needs this regulator.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 16700170bc34..25a38ed27aa8 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -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) { |