mutex_init(&rk_phy->pcie_mutex);
 
        rk_phy->phy_rst = devm_reset_control_get(dev, "phy");
-       if (IS_ERR(rk_phy->phy_rst)) {
-               if (PTR_ERR(rk_phy->phy_rst) != -EPROBE_DEFER)
-                       dev_err(dev,
-                               "missing phy property for reset controller\n");
-               return PTR_ERR(rk_phy->phy_rst);
-       }
+       if (IS_ERR(rk_phy->phy_rst))
+               return dev_err_probe(&pdev->dev, PTR_ERR(rk_phy->phy_rst),
+                                    "missing phy property for reset controller\n");
 
        rk_phy->clk_pciephy_ref = devm_clk_get(dev, "refclk");
        if (IS_ERR(rk_phy->clk_pciephy_ref)) {