diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-04-25 19:12:23 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-06-22 16:15:00 +0300 |
commit | a1628366227aff3433f646cec2beb36d1f018f86 (patch) | |
tree | d3c1637525447ec09d620c3eebecbb3d2be6b7f2 /drivers/irqchip | |
parent | f48e699ddf7056f83bb8e2dbe3c2ae8d1ff1a31a (diff) | |
download | linux-a1628366227aff3433f646cec2beb36d1f018f86.tar.xz |
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/irqchip')
-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); |