diff options
author | Peter Chen <peter.chen@nxp.com> | 2019-09-23 10:34:38 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2019-11-18 16:45:30 +0800 |
commit | 782c1c49f3dbf335de6b95f2d97b105cca236bc9 (patch) | |
tree | 723294c62ccfd575019d0e00e92230998b8126fc /drivers | |
parent | 93c2c7330a3b6d973cd82dfd7bcbd6df035752f6 (diff) | |
download | linux-782c1c49f3dbf335de6b95f2d97b105cca236bc9.tar.bz2 |
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')
-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) { |