summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorLorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>2014-07-17 18:19:20 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2014-07-18 15:23:59 +0100
commit18ab7db6b749ac27aac08d572afbbd2f4d937934 (patch)
tree35782d6f10449a2203d284054fec84d4668e1f87 /arch/arm64
parentb9e97ef93c630404f305350d88d09391d1a55648 (diff)
downloadblackbird-op-linux-18ab7db6b749ac27aac08d572afbbd2f4d937934.tar.gz
blackbird-op-linux-18ab7db6b749ac27aac08d572afbbd2f4d937934.zip
arm64: kernel: add missing __init section marker to cpu_suspend_init
Suspend init function must be marked as __init, since it is not needed after the kernel has booted. This patch moves the cpu_suspend_init() function to the __init section. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/kernel/suspend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c
index 1fa9ce4afd8f..55a99b9a97e0 100644
--- a/arch/arm64/kernel/suspend.c
+++ b/arch/arm64/kernel/suspend.c
@@ -119,7 +119,7 @@ int cpu_suspend(unsigned long arg)
extern struct sleep_save_sp sleep_save_sp;
extern phys_addr_t sleep_idmap_phys;
-static int cpu_suspend_init(void)
+static int __init cpu_suspend_init(void)
{
void *ctx_ptr;
OpenPOWER on IntegriCloud