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


Groups > linux.kernel > #1591526 > unrolled thread

[PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init

Started byDaniel Kurtz <djkurtz@chromium.org>
First post2017-03-02 23:50 +0100
Last post2017-03-02 23:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init Daniel Kurtz <djkurtz@chromium.org> - 2017-03-02 23:50 +0100

#1591526 — [PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init

FromDaniel Kurtz <djkurtz@chromium.org>
Date2017-03-02 23:50 +0100
Subject[PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init
Message-ID<tgwW6-1sl-13@gated-at.bofh.it>
This function is only called once at boot by device_initcall(), so mark
it as __init.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
---
 drivers/cpufreq/mt8173-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c
index ab25b1235a5e..72bc1192bd30 100644
--- a/drivers/cpufreq/mt8173-cpufreq.c
+++ b/drivers/cpufreq/mt8173-cpufreq.c
@@ -573,7 +573,7 @@ static struct platform_driver mt8173_cpufreq_platdrv = {
 	.probe		= mt8173_cpufreq_probe,
 };
 
-static int mt8173_cpufreq_driver_init(void)
+static int __init mt8173_cpufreq_driver_init(void)
 {
 	struct platform_device *pdev;
 	int err;
-- 
2.12.0.rc1.440.g5b76565f74-goog

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web