Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1384786 > unrolled thread

[PATCH 3/4] soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops

Started byDaniel Lezcano <daniel.lezcano@linaro.org>
First post2016-04-22 10:40 +0200
Last post2016-04-22 10:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-22 10:40 +0200

#1384786 — [PATCH 3/4] soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops

FromDaniel Lezcano <daniel.lezcano@linaro.org>
Date2016-04-22 10:40 +0200
Subject[PATCH 3/4] soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops
Message-ID<rqEN3-7vo-1@gated-at.bofh.it>
From: Jisheng Zhang <jszhang@marvell.com>

The qcom_cpuidle_ops structures is not over-written, so add "const"
qualifier and replace __initdata with __initconst.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
---
 drivers/soc/qcom/spm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c
index 5548a31..1fcbb22 100644
--- a/drivers/soc/qcom/spm.c
+++ b/drivers/soc/qcom/spm.c
@@ -274,7 +274,7 @@ check_spm:
 	return per_cpu(cpu_spm_drv, cpu) ? 0 : -ENXIO;
 }
 
-static struct cpuidle_ops qcom_cpuidle_ops __initdata = {
+static const struct cpuidle_ops qcom_cpuidle_ops __initconst = {
 	.suspend = qcom_idle_enter,
 	.init = qcom_cpuidle_init,
 };
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web