Skip to content

Commit

Permalink
irqchip/qcom: Use builtin_platform_driver to simplify the code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Marc Zyngier committed Jun 22, 2017
1 parent f48e699 commit a162836
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/irqchip/qcom-irq-combiner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit a162836

Please sign in to comment.