[PATCH 2/3] usb: xhci: tegra: release padctl node reference after probe
From: Guangshuo Li
Date: Thu Sep 24 2026 - 07:28:52 EST
tegra_xusb_probe() obtains np with of_parse_phandle(), but the successful
path returns without the matching of_node_put(). The probe error path
already releases the reference through the put_padctl label.
Release np before returning from a successful probe so the node reference
is balanced once it is no longer needed.
Fixes: 971ee247060d ("usb: xhci: tegra: Enable ELPG for runtime/system PM")
Signed-off-by: Guangshuo Li <lgs201920130244@xxxxxxxxx>
---
drivers/usb/host/xhci-tegra.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 6f235d1e117e..93e794b3343a 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1951,6 +1951,7 @@ static int tegra_xusb_probe(struct platform_device *pdev)
pm_runtime_enable(tegra->dev);
}
+ of_node_put(np);
return 0;
remove_usb3:
--
2.43.0