[PATCH] ACPI / PMIC: AXP288: use builtin_platform_driver

From: Geliang Tang
Date: Fri Nov 18 2016 - 09:15:03 EST


Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
---
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