mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Antonio Borneo" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Antonio Borneo <antonio.borneo@foss.st.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org
Subject: [tip: irq/core] irqchip/stm32mp-exti: Allow building as module
Date: Sun, 23 Jun 2024 22:20:52 -0000	[thread overview]
Message-ID: <171918125205.10875.15410755034870534766.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20240620083115.204362-7-antonio.borneo@foss.st.com>

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     0be58e0553812fcbd37c0c2d89e2b5bc296f04ea
Gitweb:        https://git.kernel.org/tip/0be58e0553812fcbd37c0c2d89e2b5bc296f04ea
Author:        Antonio Borneo <antonio.borneo@foss.st.com>
AuthorDate:    Thu, 20 Jun 2024 10:31:13 +02:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Mon, 24 Jun 2024 00:16:43 +02:00

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

---
 drivers/irqchip/Kconfig            |  8 ++++++--
 drivers/irqchip/irq-stm32mp-exti.c | 15 ++++-----------
 2 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 978639d..cbf49b6 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -405,9 +405,13 @@ config PARTITION_PERCPU
 	bool
 
 config STM32MP_EXTI
-	bool
-	select IRQ_DOMAIN
+	tristate "STM32MP extended interrupts and event controller"
+	depends on (ARCH_STM32 && !ARM_SINGLE_ARMV7M) || COMPILE_TEST
+	default y
+	select IRQ_DOMAIN_HIERARCHY
 	select GENERIC_IRQ_CHIP
+	help
+	  Support STM32MP EXTI (extended interrupts and event) controller.
 
 config STM32_EXTI
 	bool
diff --git a/drivers/irqchip/irq-stm32mp-exti.c b/drivers/irqchip/irq-stm32mp-exti.c
index 727859e..33e0cfd 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");

  reply	other threads:[~2024-06-23 22:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20  8:31 [PATCH v3 0/8] irqchip/stm32-exti: split MCU and MPU code, allow module build Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 1/8] irqchip/stm32-exti: add CONFIG_STM32MP_EXTI Antonio Borneo
2024-06-23 17:52   ` [tip: irq/core] irqchip/stm32-exti: Add CONFIG_STM32MP_EXTI tip-bot2 for Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 2/8] ARM: stm32: use different EXTI driver on ARMv7m and ARMv7a Antonio Borneo
2024-06-23 17:52   ` [tip: irq/core] ARM: stm32: Use " tip-bot2 for Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 3/8] arm64: Kconfig: select STM32MP_EXTI on STM32 platforms Antonio Borneo
2024-06-23 17:52   ` [tip: irq/core] arm64: Kconfig: Select " tip-bot2 for Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 4/8] irqchip/stm32-exti: split MCU and MPU code Antonio Borneo
2024-06-23 17:52   ` [tip: irq/core] irqchip/stm32-exti: Split " tip-bot2 for Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 5/8] irqchip/stm32mp-exti: rename internal symbols Antonio Borneo
2024-06-23 17:52   ` [tip: irq/core] irqchip/stm32mp-exti: Rename " tip-bot2 for Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 6/8] irqchip/stm32mp-exti: allow build as module Antonio Borneo
2024-06-23 22:20   ` tip-bot2 for Antonio Borneo [this message]
2024-06-20  8:31 ` [PATCH v3 7/8] ARM: stm32: allow build irq-stm32mp-exti driver " Antonio Borneo
2024-06-23 17:27   ` Thomas Gleixner
2024-06-23 17:38     ` Antonio Borneo
2024-06-23 22:15       ` Thomas Gleixner
2024-06-23 22:20   ` [tip: irq/core] ARM: stm32: Allow " tip-bot2 for Antonio Borneo
2024-06-20  8:31 ` [PATCH v3 8/8] arm64: Kconfig: allow " Antonio Borneo
2024-06-23 22:20   ` [tip: irq/core] arm64: Kconfig: Allow " tip-bot2 for Antonio Borneo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171918125205.10875.15410755034870534766.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=antonio.borneo@foss.st.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=maz@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®