summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle-zynq.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2015-05-02 02:10:57 +0200
committerPaul Gortmaker <paul.gortmaker@windriver.com>2015-06-16 20:12:38 +0200
commit090d1cf103725f583b3f41fc3185698ae5a7aa64 (patch)
tree50f6311e6a2118ba49c1ec9332e5111c0639fc5c /drivers/cpuidle/cpuidle-zynq.c
parentdrivers/platform: Convert non-modular pdev_bus to use builtin_platform_driver (diff)
downloadlinux-090d1cf103725f583b3f41fc3185698ae5a7aa64.tar.xz
linux-090d1cf103725f583b3f41fc3185698ae5a7aa64.zip
drivers/cpuidle: Convert non-modular drivers to use builtin_platform_driver
All these drivers are configured with Kconfig options that are declared as bool. Hence it is not possible for the code to be built as modular. However the code is currently using the module_platform_driver() macro for driver registration. While this currently works, we really don't want to be including the module.h header in non-modular code, which we'll be forced to do, pending some upcoming code relocation from init.h into module.h. So we fix it now by using the non-modular equivalent. Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle-zynq.c')
-rw-r--r--drivers/cpuidle/cpuidle-zynq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpuidle/cpuidle-zynq.c b/drivers/cpuidle/cpuidle-zynq.c
index 543292b1d38e..6f4257fc56e5 100644
--- a/drivers/cpuidle/cpuidle-zynq.c
+++ b/drivers/cpuidle/cpuidle-zynq.c
@@ -73,5 +73,4 @@ static struct platform_driver zynq_cpuidle_driver = {
},
.probe = zynq_cpuidle_probe,
};
-
-module_platform_driver(zynq_cpuidle_driver);
+builtin_platform_driver(zynq_cpuidle_driver);