diff mbox series

phy: Revert "phy: ti: j721e-wiz: add missing of_node_put"

Message ID 20210408062914.3813102-1-vkoul@kernel.org
State Accepted
Commit 8a6b85b14f082d266b0312562f7372e1a8f5dfb3
Headers show
Series phy: Revert "phy: ti: j721e-wiz: add missing of_node_put" | expand

Commit Message

Vinod Koul April 8, 2021, 6:29 a.m. UTC
This reverts commit 00f2e6f668b0 ("phy: ti: j721e-wiz: add missing of_node_put")
as it erroneously adds the of_node_put() as incorrect place.

Reported-by: Junlin Yang <yangjunlin@yulong.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/phy/ti/phy-j721e-wiz.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Vinod Koul April 12, 2021, 5:05 a.m. UTC | #1
On 08-04-21, 11:59, Vinod Koul wrote:
> This reverts commit 00f2e6f668b0 ("phy: ti: j721e-wiz: add missing of_node_put")
> as it erroneously adds the of_node_put() as incorrect place.

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c
index 2b354680a272..a03866338d6a 100644
--- a/drivers/phy/ti/phy-j721e-wiz.c
+++ b/drivers/phy/ti/phy-j721e-wiz.c
@@ -1114,7 +1114,6 @@  static int wiz_get_lane_phy_types(struct device *dev, struct wiz *wiz)
 			dev_err(dev,
 				"%s: Reading \"reg\" from \"%s\" failed: %d\n",
 				__func__, subnode->name, ret);
-			of_node_put(subnode);
 			return ret;
 		}
 		of_property_read_u32(subnode, "cdns,num-lanes", &num_lanes);