]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
memory: tegra186-emc: Fix missing put_bpmp
authorJon Hunter <jonathanh@nvidia.com>
Thu, 6 Nov 2025 19:05:50 +0000 (19:05 +0000)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sat, 22 Nov 2025 12:41:24 +0000 (13:41 +0100)
commit1463299a227d02b40c842a5d91d989cb26da5bbb
tree428845d382c148340a1126530ba9044b82e66c93
parent42ec0bc61f052beb0d9a6a889fe746591de74508
memory: tegra186-emc: Fix missing put_bpmp

Commit a52ddb98a674 ("memory: tegra186-emc: Simplify and handle deferred
probe with dev_err_probe()") accidently dropped a call to 'put_bpmp' to
release a handle to the BPMP when getting the EMC clock fails. Fix this
by restoring the 'goto put_bpmp' if devm_clk_get() fails.

Fixes: a52ddb98a674 ("memory: tegra186-emc: Simplify and handle deferred probe with dev_err_probe()")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20251106190550.1776974-1-jonathanh@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/tegra/tegra186-emc.c