aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/idle/intel_idle.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2013-08-30 06:27:45 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-23 19:42:58 -0400
commit00f3e755513748a6a4f2c370742227aabd8af170 (patch)
tree5a1e845ad7b6528e0a2b0d44f0f5cc7ba9f82639 /drivers/idle/intel_idle.c
parent9d046ccb98085f1d437585f84748c783a04ba240 (diff)
intel_idle: mark some functions with __init tag
intel_idle_probe() and intel_idle_cpuidle_driver_init() can be marked with __init tag as they are only called from intel_idle_init(). Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/idle/intel_idle.c')
-rw-r--r--drivers/idle/intel_idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 53b24f14606a..33e599ebbe96 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -490,7 +490,7 @@ MODULE_DEVICE_TABLE(x86cpu, intel_idle_ids);
490/* 490/*
491 * intel_idle_probe() 491 * intel_idle_probe()
492 */ 492 */
493static int intel_idle_probe(void) 493static int __init intel_idle_probe(void)
494{ 494{
495 unsigned int eax, ebx, ecx; 495 unsigned int eax, ebx, ecx;
496 const struct x86_cpu_id *id; 496 const struct x86_cpu_id *id;
@@ -558,7 +558,7 @@ static void intel_idle_cpuidle_devices_uninit(void)
558 * intel_idle_cpuidle_driver_init() 558 * intel_idle_cpuidle_driver_init()
559 * allocate, initialize cpuidle_states 559 * allocate, initialize cpuidle_states
560 */ 560 */
561static int intel_idle_cpuidle_driver_init(void) 561static int __init intel_idle_cpuidle_driver_init(void)
562{ 562{
563 int cstate; 563 int cstate;
564 struct cpuidle_driver *drv = &intel_idle_driver; 564 struct cpuidle_driver *drv = &intel_idle_driver;