Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init
@ 2017-03-02 11:03 Daniel Kurtz
       [not found] ` <20170302110345.184924-1-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  2017-03-02 11:06 ` [PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init Viresh Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Kurtz @ 2017-03-02 11:03 UTC (permalink / raw)
  Cc: Yidi Lin, Nicolas Boichat, Daniel Kurtz, Rafael J. Wysocki,
	Viresh Kumar, open list:CPU FREQUENCY DRIVERS, open list

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-02 12:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02 11:03 [PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init Daniel Kurtz
     [not found] ` <20170302110345.184924-1-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2017-03-02 11:03   ` [PATCH 2/2 v2] cpufreq: mediatek: Add support for MT8176 and MT817x Daniel Kurtz
     [not found]     ` <20170302110345.184924-2-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2017-03-02 11:07       ` Viresh Kumar
2017-03-02 11:06 ` [PATCH 1/2] cpufreq: mt8173: Mark mt8173_cpufreq_driver_init as __init Viresh Kumar
2017-03-02 11:30   ` Daniel Kurtz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox