linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/5] pinctrl: freescale: imx8ulp: fix module autoloading
@ 2024-04-11  6:46 Krzysztof Kozlowski
  2024-04-11  6:46 ` [PATCH v2 2/5] pinctrl: mediatek: " Krzysztof Kozlowski
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-11  6:46 UTC (permalink / raw)
  To: Dong Aisheng, Fabio Estevam, Shawn Guo, Jacky Bai,
	Pengutronix Kernel Team, Linus Walleij, Sascha Hauer, Sean Wang,
	Matthias Brugger, AngeloGioacchino Del Regno, zhanghongchen,
	Yinbo Zhu, Bjorn Andersson, Konrad Dybcio, linux-gpio, imx,
	linux-arm-kernel, linux-kernel, linux-mediatek, linux-arm-msm
  Cc: Krzysztof Kozlowski

Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.  Pin controllers are
considered core components, so usually they are built-in, however these
can be built and used as modules on some generic kernel.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

---

Changes in v2:
1. None
---
 drivers/pinctrl/freescale/pinctrl-imx8ulp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/freescale/pinctrl-imx8ulp.c b/drivers/pinctrl/freescale/pinctrl-imx8ulp.c
index 2e86ca9fc7ac..5632c7285147 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx8ulp.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx8ulp.c
@@ -252,6 +252,7 @@ static const struct of_device_id imx8ulp_pinctrl_of_match[] = {
 	{ .compatible = "fsl,imx8ulp-iomuxc1", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx8ulp_pinctrl_of_match);
 
 static int imx8ulp_pinctrl_probe(struct platform_device *pdev)
 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-17  8:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11  6:46 [PATCH v2 1/5] pinctrl: freescale: imx8ulp: fix module autoloading Krzysztof Kozlowski
2024-04-11  6:46 ` [PATCH v2 2/5] pinctrl: mediatek: " Krzysztof Kozlowski
2024-04-11  9:42   ` AngeloGioacchino Del Regno
2024-04-11  6:46 ` [PATCH v2 3/5] pinctrl: loongson2: " Krzysztof Kozlowski
2024-04-11  6:46 ` [PATCH v2 4/5] pinctrl: qcom: sm7150: " Krzysztof Kozlowski
2024-04-11  9:42   ` AngeloGioacchino Del Regno
2024-04-11 15:44   ` Bjorn Andersson
2024-04-11  6:46 ` [PATCH v2 5/5] pinctrl: realtek: " Krzysztof Kozlowski
2024-04-17  8:44 ` [PATCH v2 1/5] pinctrl: freescale: imx8ulp: " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).