summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm/bcm_kona_smc.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2014-04-21 16:53:03 -0500
committerMatt Porter <mporter@linaro.org>2014-04-25 08:51:32 -0400
commit5c4cee2fe8de7c14e60502b02e7c3bc7acba0530 (patch)
tree5044f39984f5d40491ed46b58ac3adde978e5eb1 /arch/arm/mach-bcm/bcm_kona_smc.h
parente80eef33f4596a247fdcf7d67d54d95d9dfaf7d3 (diff)
ARM: bcm: err, don't BUG() on SMC init failures
Several conditions in bcm_kona_smc_init() are handled with BUG_ON(). That function is capable of returning an error, so do that instead. Also, don't assume of_get_address() returns a valid pointer. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-by: Markus Mayer <markus.mayer@linaro.org> Reviewed-by: Matt Porter <mporter@linaro.org> Signed-off-by: Matt Porter <mporter@linaro.org>
Diffstat (limited to 'arch/arm/mach-bcm/bcm_kona_smc.h')
0 files changed, 0 insertions, 0 deletions