Commit 982ca19a authored by Yang Yingliang's avatar Yang Yingliang Committed by Krzysztof Kozlowski
Browse files

memory: tegra186-emc: Fix error return code in tegra186_emc_probe()



Return the error code when command fails.

Fixes: 13324edb ("memory: tegra186-emc: Handle errors in BPMP response")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Link: https://lore.kernel.org/r/20210928021545.3774677-1-yangyingliang@huawei.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
parent 1d8e0223
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ static int tegra186_emc_probe(struct platform_device *pdev)
		goto put_bpmp;
	}
	if (msg.rx.ret < 0) {
		err = -EINVAL;
		dev_err(&pdev->dev, "EMC DVFS MRQ failed: %d (BPMP error code)\n", msg.rx.ret);
		goto put_bpmp;
	}