diff options
author | Peter Chen <peter.chen@nxp.com> | 2019-09-23 04:34:38 +0200 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2019-11-18 09:45:30 +0100 |
commit | 782c1c49f3dbf335de6b95f2d97b105cca236bc9 (patch) | |
tree | 723294c62ccfd575019d0e00e92230998b8126fc /drivers/usb | |
parent | usb: chipidea: imx: enable vbus and id wakeup only for OTG events (diff) | |
download | linux-782c1c49f3dbf335de6b95f2d97b105cca236bc9.tar.xz linux-782c1c49f3dbf335de6b95f2d97b105cca236bc9.zip |
usb: chipidea: core: change vbus-regulator as optional
Vbus regualtor is an optional regulator, for platforms, which
doesn't have this regulator, it will get a dummy regulator and
show warning message.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/chipidea/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 98ee575ee500..dce5db41501c 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -683,7 +683,7 @@ static int ci_get_platdata(struct device *dev, if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { /* Get the vbus regulator */ - platdata->reg_vbus = devm_regulator_get(dev, "vbus"); + platdata->reg_vbus = devm_regulator_get_optional(dev, "vbus"); if (PTR_ERR(platdata->reg_vbus) == -EPROBE_DEFER) { return -EPROBE_DEFER; } else if (PTR_ERR(platdata->reg_vbus) == -ENODEV) { |