OSDN Git Service

iommu/arm-smmu: Don't ignore clock/regulator API errors
authorMitchel Humpherys <mitchelh@codeaurora.org>
Tue, 20 Oct 2015 00:13:47 +0000 (17:13 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:24 +0000 (11:14 -0700)
commit8d42b78c4c69e5fd188f4bcc5d35fa3973a5f665
tree00c39c624ee3bff00c64ed7247666822637ddb13
parent80d68924c298d159fb3a91cb566fd47fc678436e
iommu/arm-smmu: Don't ignore clock/regulator API errors

The clock and regulator APIs can fail, but we're ignoring their return
values.  This results in strange code paths where we misuse the
API (e.g. we enable clocks after a failed prepare, which makes the clock
driver yell).  Fix this by checking all return values and propagating
the errors up to clients as needed.

CRs-Fixed: 924600
Change-Id: Ib6cb3afac1f5472f3a5abb5c251765344fe1a7a9
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
drivers/iommu/arm-smmu.c