usb: phy: snps-eusb2: Making ref_clk as a optional clk
Currently the phy-probe requires ref_clk, but if usb2 is connected directly to the CXO PAD, in that case ref_clk does not need to be added to the DT. If devm_clk_get is marked as optional, it means instead of return - ENOENT, function returns NULL. In this change devm_clk_get change to devm_clk_get_optional for ref_clk. Change-Id: I943a146ebee47e21af9763cab5e21a15aa866497 Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
This commit is contained in:
parent
e280d7bb03
commit
cf01834501
1 changed files with 1 additions and 1 deletions
|
|
@ -987,7 +987,7 @@ static int msm_eusb2_phy_probe(struct platform_device *pdev)
|
|||
goto err_ret;
|
||||
}
|
||||
|
||||
phy->ref_clk = devm_clk_get(dev, "ref_clk");
|
||||
phy->ref_clk = devm_clk_get_optional(dev, "ref_clk");
|
||||
if (IS_ERR(phy->ref_clk)) {
|
||||
dev_err(dev, "clk get failed for ref_clk\n");
|
||||
ret = PTR_ERR(phy->ref_clk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue