Message ID | Y8pUv0IfEfqosPEF@ubun2204.myguest.virtualbox.org |
---|---|
State | Not Applicable |
Headers | show |
Series | phy: tegra: xusb: Release device node reference | expand |
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);
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@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(+)