diff options
| author | Wei Yongjun <[email protected]> | 2017-04-25 16:12:23 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2017-06-22 13:15:00 +0000 |
| commit | a1628366227aff3433f646cec2beb36d1f018f86 (patch) | |
| tree | d3c1637525447ec09d620c3eebecbb3d2be6b7f2 /drivers/irqchip/qcom-irq-combiner.c | |
| parent | irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed (diff) | |
| download | kernel-a1628366227aff3433f646cec2beb36d1f018f86.tar.gz kernel-a1628366227aff3433f646cec2beb36d1f018f86.zip | |
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 <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'drivers/irqchip/qcom-irq-combiner.c')
| -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); |
