[PATCH] phy: tegra: xusb: Release device node reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---

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






[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux