irqchip/qcom-pdc: Switch to using IRQCHIP_PLATFORM_DRIVER helper macros
authorSaravana Kannan <saravanak@google.com>
Sat, 18 Jul 2020 00:06:35 +0000 (17:06 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 27 Jul 2020 07:55:04 +0000 (08:55 +0100)
commit5be57099d44550d2c4cf44a86c44df87edb79a57
tree00e22e38ffdde3a1da7076f2835cf5ab175fb117
parentf8410e626569324cfe831aaecc0504cafc12b471
irqchip/qcom-pdc: Switch to using IRQCHIP_PLATFORM_DRIVER helper macros

Switch the driver to use the helper macros. In addition to reducing the
number of lines, this also adds module unload protection (if the driver
is compiled as a module) by switching from module_platform_driver to
builtin_platform_driver.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200718000637.3632841-3-saravanak@google.com
drivers/irqchip/qcom-pdc.c