소스 검색

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>
Paul Gortmaker 10 년 전
부모
커밋
090d1cf103
3개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 2
      drivers/cpuidle/cpuidle-at91.c
  2. 1 2
      drivers/cpuidle/cpuidle-calxeda.c
  3. 1 2
      drivers/cpuidle/cpuidle-zynq.c

+ 1 - 2
drivers/cpuidle/cpuidle-at91.c

@@ -62,5 +62,4 @@ static struct platform_driver at91_cpuidle_driver = {
 	},
 	.probe = at91_cpuidle_probe,
 };
-
-module_platform_driver(at91_cpuidle_driver);
+builtin_platform_driver(at91_cpuidle_driver);

+ 1 - 2
drivers/cpuidle/cpuidle-calxeda.c

@@ -75,5 +75,4 @@ static struct platform_driver calxeda_cpuidle_plat_driver = {
         },
         .probe = calxeda_cpuidle_probe,
 };
-
-module_platform_driver(calxeda_cpuidle_plat_driver);
+builtin_platform_driver(calxeda_cpuidle_plat_driver);

+ 1 - 2
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);