summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm/bcm_kona_smc.h
diff options
context:
space:
mode:
authorChristian Daudt <csd@broadcom.com>2013-08-07 04:04:54 +0400
committerChristian Daudt <csd@broadcom.com>2013-08-20 21:51:39 +0400
commit3a76b35186cb967a69c4a3935caf2fdf428e933b (patch)
treed26dd20cad8966e895b642c282f115dd8a75e071 /arch/arm/mach-bcm/bcm_kona_smc.h
parentaea237bfa0a8ce8fe364e3fa7de6850777044a60 (diff)
downloadlinux-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.h2
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,