diff options
author | Antonio Borneo <antonio.borneo@foss.st.com> | 2024-06-20 11:31:13 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-06-24 01:16:43 +0300 |
commit | 0be58e0553812fcbd37c0c2d89e2b5bc296f04ea (patch) | |
tree | 65f33d47a34d09ab870690dcc6df305150a536f8 /drivers/irqchip/irq-stm32mp-exti.c | |
parent | c9d269469d2b9a06559cdc84d12dd3fb4d552581 (diff) | |
download | linux-0be58e0553812fcbd37c0c2d89e2b5bc296f04ea.tar.xz |
irqchip/stm32mp-exti: Allow building as module
Allow to build the driver as a module by adding the necessarily hooks in
Kconfig and in the driver's code.
Since all the probe dependencies linked to this driver have already been
fixed, remove the not longer relevant 'arch_initcall'.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240620083115.204362-7-antonio.borneo@foss.st.com
Diffstat (limited to 'drivers/irqchip/irq-stm32mp-exti.c')
-rw-r--r-- | drivers/irqchip/irq-stm32mp-exti.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/irqchip/irq-stm32mp-exti.c b/drivers/irqchip/irq-stm32mp-exti.c index 727859e073ea..33e0cfdea654 100644 --- a/drivers/irqchip/irq-stm32mp-exti.c +++ b/drivers/irqchip/irq-stm32mp-exti.c @@ -722,15 +722,8 @@ static struct platform_driver stm32mp_exti_driver = { }, }; -static int __init stm32mp_exti_arch_init(void) -{ - return platform_driver_register(&stm32mp_exti_driver); -} - -static void __exit stm32mp_exti_arch_exit(void) -{ - return platform_driver_unregister(&stm32mp_exti_driver); -} +module_platform_driver(stm32mp_exti_driver); -arch_initcall(stm32mp_exti_arch_init); -module_exit(stm32mp_exti_arch_exit); +MODULE_AUTHOR("Maxime Coquelin <mcoquelin.stm32@gmail.com>"); +MODULE_DESCRIPTION("STM32MP EXTI driver"); +MODULE_LICENSE("GPL"); |