Skip to contentSkip to conversation

irqchip/qcom: Use builtin_platform_driver to simplify the code

PATCH New Wei Yongjun 1 participant 1 message Apr 25, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/qcom: Use builtin_platform_driver to simplify the code

From: Wei Yongjun <[email protected]>

Use the builtin_platform_driver() macro to make the code simpler.

---
 drivers/irqchip/qcom-irq-combiner.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/irqchip/qcom-irq-combiner.c +1 -6
index 2265586..6aa3ea4 100644
@@ -288,9 +288,4 @@ static struct platform_driver qcom_irq_combiner_probe = {
 	},
 	.probe = combiner_probe,
 };
-
-static int __init register_qcom_irq_combiner(void)
-{
-	return platform_driver_register(&qcom_irq_combiner_probe);
-}
-device_initcall(register_qcom_irq_combiner);
+builtin_platform_driver(qcom_irq_combiner_probe);