From: Wei Yongjun Date: Tue, 25 Apr 2017 16:12:23 +0000 (+0000) Subject: irqchip/qcom: Use builtin_platform_driver to simplify the code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1628366227aff3433f646cec2beb36d1f018f86;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git irqchip/qcom: Use builtin_platform_driver to simplify the code Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun Signed-off-by: Marc Zyngier --- diff --git a/drivers/irqchip/qcom-irq-combiner.c b/drivers/irqchip/qcom-irq-combiner.c index 226558698344..6aa3ea479214 100644 --- a/drivers/irqchip/qcom-irq-combiner.c +++ b/drivers/irqchip/qcom-irq-combiner.c @@ -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);