[PATCH] phy: tegra: xusb: Release device node reference
Deepak R Varma
drv at mailo.com
Fri Jan 20 00:45:51 PST 2023
Platform device reference is retrieved using the device node using a call
to of_find_device_by_node(). Since we do not need to maintain the device
node reference further, we can release it back to the core.
Signed-off-by: Deepak R Varma <drv at mailo.com>
---
Please note: The patch proposal is compile tested using tegra defconfig.
drivers/phy/tegra/xusb-tegra210.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/phy/tegra/xusb-tegra210.c b/drivers/phy/tegra/xusb-tegra210.c
index ebc8a7e21a31..d30de77515a3 100644
--- a/drivers/phy/tegra/xusb-tegra210.c
+++ b/drivers/phy/tegra/xusb-tegra210.c
@@ -3169,6 +3169,8 @@ tegra210_xusb_padctl_probe(struct device *dev,
goto out;
}
+ of_node_put(np);
+
if (!platform_get_drvdata(pdev))
return ERR_PTR(-EPROBE_DEFER);
--
2.34.1
More information about the linux-phy
mailing list