firmware: tegra: Fix error return code in tegra210_bpmp_init()
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 13 May 2021 13:26:46 +0000 (21:26 +0800)
committerThierry Reding <treding@nvidia.com>
Tue, 1 Jun 2021 15:06:41 +0000 (17:06 +0200)
commit7fea67710e9f6a111a2c9440576f2396ccd92d57
tree8a35e0f8c283258426b0e7eb972352ffa0f48ee7
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
firmware: tegra: Fix error return code in tegra210_bpmp_init()

When call irq_get_irq_data() to get the IRQ's irq_data failed, an
appropriate error code -ENOENT should be returned. However, we directly
return 'err', which records the IRQ number instead of the error code.

Fixes: 139251fc2208 ("firmware: tegra: add bpmp driver for Tegra210")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/firmware/tegra/bpmp-tegra210.c