diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-04-25 16:12:23 +0000 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-06-22 14:15:00 +0100 |
commit | a1628366227aff3433f646cec2beb36d1f018f86 (patch) | |
tree | d3c1637525447ec09d620c3eebecbb3d2be6b7f2 /drivers | |
parent | f48e699ddf7056f83bb8e2dbe3c2ae8d1ff1a31a (diff) |
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 <weiyongjun1@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/irqchip/qcom-irq-combiner.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); |