diff options
author | Christian Daudt <csd@broadcom.com> | 2013-08-07 04:04:54 +0400 |
---|---|---|
committer | Christian Daudt <csd@broadcom.com> | 2013-08-20 21:51:39 +0400 |
commit | 3a76b35186cb967a69c4a3935caf2fdf428e933b (patch) | |
tree | d26dd20cad8966e895b642c282f115dd8a75e071 /arch/arm/mach-bcm/bcm_kona_smc.h | |
parent | aea237bfa0a8ce8fe364e3fa7de6850777044a60 (diff) | |
download | linux-3a76b35186cb967a69c4a3935caf2fdf428e933b.tar.xz |
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>
Diffstat (limited to 'arch/arm/mach-bcm/bcm_kona_smc.h')
-rw-r--r-- | arch/arm/mach-bcm/bcm_kona_smc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-bcm/bcm_kona_smc.h b/arch/arm/mach-bcm/bcm_kona_smc.h index 3bedbed1c21b..d098a7e76744 100644 --- a/arch/arm/mach-bcm/bcm_kona_smc.h +++ b/arch/arm/mach-bcm/bcm_kona_smc.h @@ -64,7 +64,7 @@ #define SSAPI_BRCM_START_VC_CORE 0x0E000008 #ifndef __ASSEMBLY__ -extern void bcm_kona_smc_init(void); +extern int __init bcm_kona_smc_init(void); extern unsigned bcm_kona_smc(unsigned service_id, unsigned arg0, |