memory: tegra186-emc: Fix error return code in tegra186_emc_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 28 Sep 2021 02:15:45 +0000 (10:15 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 7 Oct 2021 18:32:33 +0000 (20:32 +0200)
commit982ca19a09ac0365ad1409f919da43596d2a2276
tree69c6d58319491ea7946e9e1e4d4afe28a318cfd0
parent1d8e0223bb52071ffc59391f0ebefa06ce5643d7
memory: tegra186-emc: Fix error return code in tegra186_emc_probe()

Return the error code when command fails.

Fixes: 13324edbe926 ("memory: tegra186-emc: Handle errors in BPMP response")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Link: https://lore.kernel.org/r/20210928021545.3774677-1-yangyingliang@huawei.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra186-emc.c