powerpc/pseries/cpuidle: Make cpuidle-pseries backend driver a non-module.
authorDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
Tue, 14 Jan 2014 10:56:18 +0000 (16:26 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 29 Jan 2014 06:02:23 +0000 (17:02 +1100)
Currently cpuidle-pseries backend driver cannot be
built as a module due to dependencies wrt cpuidle framework.
This patch removes all the module related code in the driver.

Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/cpuidle/cpuidle-pseries.c

index 32d86bc5d3f70f913b2f98d0145eb7775a8ee1f3..5e13f6ce227126c55a384a71db2c46d70789b66b 100644 (file)
@@ -289,17 +289,4 @@ static int __init pseries_processor_idle_init(void)
        return 0;
 }
 
-static void __exit pseries_processor_idle_exit(void)
-{
-
-       unregister_cpu_notifier(&setup_hotplug_notifier);
-       cpuidle_unregister(&pseries_idle_driver);
-       return;
-}
-
-module_init(pseries_processor_idle_init);
-module_exit(pseries_processor_idle_exit);
-
-MODULE_AUTHOR("Deepthi Dharwar <deepthi@linux.vnet.ibm.com>");
-MODULE_DESCRIPTION("Cpuidle driver for POWER");
-MODULE_LICENSE("GPL");
+device_initcall(pseries_processor_idle_init);
This page took 0.039319 seconds and 5 git commands to generate.