clk: tegra: Check BPMP response return code
authorTimo Alho <talho@nvidia.com>
Thu, 7 Sep 2017 09:31:02 +0000 (12:31 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Oct 2017 14:38:40 +0000 (16:38 +0200)
commit231ca2e583be324012212d10ad913f30c2f66adb
tree4d38e788f7460522d1f1fa76b9ce68f77339bab1
parent8f43ff6b2ebc27cbd6c2cd00178195b1bf39a5fc
clk: tegra: Check BPMP response return code

Check return code in BPMP response message(s). The typical error case is
when a clock operation is attempted with an invalid clock identifier.

Also remove error print from call to clk_get_info() as the
implementation loops through the range of all possible identifiers, yet
the operation is expected to error out when the clock ID is unused.

Signed-off-by: Timo Alho <talho@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-bpmp.c