OSDN Git Service

ARM: bcm: err, don't BUG() on SMC init failures
authorAlex Elder <elder@linaro.org>
Mon, 21 Apr 2014 21:53:03 +0000 (16:53 -0500)
committerMatt Porter <mporter@linaro.org>
Fri, 25 Apr 2014 12:51:32 +0000 (08:51 -0400)
commit5c4cee2fe8de7c14e60502b02e7c3bc7acba0530
tree5044f39984f5d40491ed46b58ac3adde978e5eb1
parente80eef33f4596a247fdcf7d67d54d95d9dfaf7d3
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>
arch/arm/mach-bcm/bcm_kona_smc.c