PCI: rockchip: dw: Support applications that do not perform phy operations

Change-Id: I3762f684b47d634cb7302e2865b9f7f42f53955c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2022-09-15 11:23:11 +08:00
committed by Tao Huang
parent bd4aec9190
commit eb119e2aa5

View File

@@ -1279,7 +1279,7 @@ static int rk_pcie_phy_init(struct rk_pcie *rk_pcie)
int ret;
struct device *dev = rk_pcie->pci->dev;
rk_pcie->phy = devm_phy_get(dev, "pcie-phy");
rk_pcie->phy = devm_phy_optional_get(dev, "pcie-phy");
if (IS_ERR(rk_pcie->phy)) {
if (PTR_ERR(rk_pcie->phy) != -EPROBE_DEFER)
dev_info(dev, "missing phy\n");