Commit 07e0052
phy: tegra: xusb: fix device and OF node leak at probe
commit bca0657 upstream.
Make sure to drop the references taken to the PMC OF node and device by
of_parse_phandle() and of_find_device_by_node() during probe.
Note the holding a reference to the PMC device does not prevent the
PMC regmap from going away (e.g. if the PMC driver is unbound) so there
is no need to keep the reference.
Fixes: 2d10214 ("phy: tegra: xusb: Add wake/sleepwalk for Tegra210")
Cc: stable@vger.kernel.org # 5.14
Cc: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250724131206.2211-2-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent ac22507 commit 07e0052
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3164 | 3164 | | |
3165 | 3165 | | |
3166 | 3166 | | |
| 3167 | + | |
3167 | 3168 | | |
3168 | 3169 | | |
3169 | 3170 | | |
3170 | 3171 | | |
3171 | 3172 | | |
3172 | | - | |
| 3173 | + | |
| 3174 | + | |
3173 | 3175 | | |
| 3176 | + | |
3174 | 3177 | | |
3175 | 3178 | | |
3176 | 3179 | | |
3177 | 3180 | | |
3178 | 3181 | | |
| 3182 | + | |
3179 | 3183 | | |
3180 | 3184 | | |
3181 | 3185 | | |
| |||
0 commit comments