]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
memory: tegra20-emc: Simplify and handle deferred probe with dev_err_probe()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 11 Sep 2025 09:43:18 +0000 (11:43 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 13 Oct 2025 00:23:00 +0000 (02:23 +0200)
commit57c9f6e29ccd44db882b943df2e72a4e54ebe0e3
tree1691f02e21495a8bb6e62bf137ce0e343bf52a4a
parentdb2bd7ab1ae8c1f32a553b6eb36d6fecea41aab5
memory: tegra20-emc: Simplify and handle deferred probe with dev_err_probe()

Certain calls, like clk_get, can cause probe deferral and driver should
handle it.  Use dev_err_probe() to fix that and also change other
non-deferred errors cases to make the code simpler.

Also fix missing new line in error message of devm_devfreq_add_device().

Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/tegra/tegra20-emc.c