public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI / PMIC: AXP288: use builtin_platform_driver
@ 2016-11-18 14:12 Geliang Tang
  2016-11-18 14:12 ` [PATCH] dmaengine: mv_xor: " Geliang Tang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Geliang Tang @ 2016-11-18 14:12 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Paul Gortmaker
  Cc: Geliang Tang, linux-acpi, linux-kernel

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/acpi/pmic/intel_pmic_xpower.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/acpi/pmic/intel_pmic_xpower.c b/drivers/acpi/pmic/intel_pmic_xpower.c
index e6e991a..32abbb9 100644
--- a/drivers/acpi/pmic/intel_pmic_xpower.c
+++ b/drivers/acpi/pmic/intel_pmic_xpower.c
@@ -258,8 +258,4 @@ static struct platform_driver intel_xpower_pmic_opregion_driver = {
 	},
 };
 
-static int __init intel_xpower_pmic_opregion_driver_init(void)
-{
-	return platform_driver_register(&intel_xpower_pmic_opregion_driver);
-}
-device_initcall(intel_xpower_pmic_opregion_driver_init);
+builtin_platform_driver(intel_xpower_pmic_opregion_driver);
-- 
2.9.3

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

end of thread, other threads:[~2016-11-25  6:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 14:12 [PATCH] ACPI / PMIC: AXP288: use builtin_platform_driver Geliang Tang
2016-11-18 14:12 ` [PATCH] dmaengine: mv_xor: " Geliang Tang
2016-11-25  6:17   ` Vinod Koul
2016-11-18 14:12 ` [PATCH] gpio: etraxfs: " Geliang Tang
2016-11-22  9:14   ` Linus Walleij
2016-11-18 14:12 ` [PATCH] gpio: mb86s7x: " Geliang Tang
2016-11-22  9:16   ` Linus Walleij
2016-11-18 14:12 ` [PATCH] pinctrl: mediatek: " Geliang Tang
2016-11-18 23:53   ` Hongzhou Yang
2016-11-22  9:19   ` Linus Walleij
2016-11-18 14:12 ` [PATCH] pinctrl: stm32: " Geliang Tang
2016-11-22  8:58   ` Linus Walleij

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