ARM: bcm: Make secure API call optional
authorChristian Daudt <csd@broadcom.com>
Wed, 7 Aug 2013 00:04:54 +0000 (17:04 -0700)
committerChristian Daudt <csd@broadcom.com>
Tue, 20 Aug 2013 17:51:39 +0000 (10:51 -0700)
commit3a76b35186cb967a69c4a3935caf2fdf428e933b
treed26dd20cad8966e895b642c282f115dd8a75e071
parentaea237bfa0a8ce8fe364e3fa7de6850777044a60
ARM: bcm: Make secure API call optional

The current bcm_kona_smc_init function throws a BUG_ON if there's no SMC
device node defined in the device tree.

Since secure API access is optional depending the chip configuration,
fix this by allowing the rest of the code to run even if there's no SMC
device node defined

Signed-off-by: Christian Daudt <csd@broadcom.com>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
arch/arm/mach-bcm/bcm_kona_smc.c
arch/arm/mach-bcm/bcm_kona_smc.h
arch/arm/mach-bcm/board_bcm281xx.c