]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85caea1c103e070df1f75bf9956a3da5ff1b2950
tree00e22e38ffdde3a1da7076f2835cf5ab175fb117
parentff7e02df58b9a653fa06cfec9d1e8bef81345eb9
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