瀏覽代碼

phy: ti: j721e-wiz: Fix error path if Type-C GPIO is not available

We should not be complaining on console if we got -EPROBE_DEFER.
Also, fixup the error path.

Fixes: fa06d29814d0 ("phy: ti: j721e-wiz: Manage typec-gpio-dir")
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Roger Quadros 6 年之前
父節點
當前提交
7263de9290
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      drivers/phy/ti/phy-j721e-wiz.c

+ 3 - 2
drivers/phy/ti/phy-j721e-wiz.c

@@ -792,8 +792,9 @@ static int wiz_probe(struct platform_device *pdev)
 						      GPIOD_IN);
 	if (IS_ERR(wiz->gpio_typec_dir)) {
 		ret = PTR_ERR(wiz->gpio_typec_dir);
-		dev_err(dev, "Failed to request typec-dir gpio: %d\n", ret);
-		return ret;
+		if (ret != -EPROBE_DEFER)
+			dev_err(dev, "Failed to request typec-dir gpio: %d\n", ret);
+		goto err_addr_to_resource;
 	}
 
 	wiz->dev = dev;