diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2019-08-28 16:23:46 +0800 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-09-11 16:16:12 +0800 |
commit | 54a0c7b2e7a233aa3975771592afb8e0e2f6acc0 (patch) | |
tree | f6747c116a745e8f4293eea769f20ca19caae37c /drivers | |
parent | 86b4a6db68b21f1122b01296ae281ba2fa3607f2 (diff) | |
download | u-boot-54a0c7b2e7a233aa3975771592afb8e0e2f6acc0.tar.gz u-boot-54a0c7b2e7a233aa3975771592afb8e0e2f6acc0.tar.bz2 u-boot-54a0c7b2e7a233aa3975771592afb8e0e2f6acc0.zip |
usb: ehci-generic: don't probe fail if there is no clk_enable() ops
Some clock driver do not have a clk_enable() call back, and we should not
treat this as fail in ehci probe like other modules, eg. clk_enabl_bulk()
do not return fail if ret value is '-ENOSYS'
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ehci-generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 0270f3bc95..682a070306 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -96,7 +96,7 @@ static int ehci_usb_probe(struct udevice *dev) if (err < 0) break; err = clk_enable(&priv->clocks[i]); - if (err) { + if (err && err != -ENOSYS) { dev_err(dev, "failed to enable clock %d\n", i); clk_free(&priv->clocks[i]); goto clk_err; |