]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ddd6795dc7d953e46b820d1019fa4bd1c1155dd
tree5044f39984f5d40491ed46b58ac3adde978e5eb1
parent64b6149abfa1d21e071f8da494036f8abaaf142d
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