diff options
Diffstat (limited to 'drivers/usb/mtu3/mtu3_plat.c')
-rw-r--r-- | drivers/usb/mtu3/mtu3_plat.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index 19a345d6687d..c3125da66bab 100644 --- a/drivers/usb/mtu3/mtu3_plat.c +++ b/drivers/usb/mtu3/mtu3_plat.c | |||
@@ -225,10 +225,17 @@ static int get_ssusb_rscs(struct platform_device *pdev, struct ssusb_mtk *ssusb) | |||
225 | return PTR_ERR(ssusb->sys_clk); | 225 | return PTR_ERR(ssusb->sys_clk); |
226 | } | 226 | } |
227 | 227 | ||
228 | /* | ||
229 | * reference clock is usually a "fixed-clock", make it optional | ||
230 | * for backward compatibility and ignore the error if it does | ||
231 | * not exist. | ||
232 | */ | ||
228 | ssusb->ref_clk = devm_clk_get(dev, "ref_ck"); | 233 | ssusb->ref_clk = devm_clk_get(dev, "ref_ck"); |
229 | if (IS_ERR(ssusb->ref_clk)) { | 234 | if (IS_ERR(ssusb->ref_clk)) { |
230 | dev_err(dev, "failed to get ref clock\n"); | 235 | if (PTR_ERR(ssusb->ref_clk) == -EPROBE_DEFER) |
231 | return PTR_ERR(ssusb->ref_clk); | 236 | return -EPROBE_DEFER; |
237 | |||
238 | ssusb->ref_clk = NULL; | ||
232 | } | 239 | } |
233 | 240 | ||
234 | ssusb->num_phys = of_count_phandle_with_args(node, | 241 | ssusb->num_phys = of_count_phandle_with_args(node, |