Skip to contentSkip to conversation

pinctrl: realtek: rtd1619b: publish the OF module alias

PATCH In review Pengpeng Hou 2 participants 2 messages Sep 20 – Sep 28

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pinctrl: realtek: rtd1619b: publish the OF module alias

PINCTRL_RTD1619B is tristate, and the driver uses the realtek,rtd1619b-pinctrl compatible to match its devices. However, the OF table is not exported, so a modular build does not advertise this alias for automatic module loading.

Add the OF export without changing probe or registration ordering.

The issue was found by our static-analysis tool.

Fixes c7910f6aca56 ("pinctrl: realtek: Add pinctrl driver for RTD1619B")
Assisted-by gpt 5

---
Changes since v1:
https://lore.kernel.org/all/[email protected]/
Use the full author name and regenerate the plain-text inline diff without embedded carriage returns.

 drivers/pinctrl/realtek/pinctrl-rtd1619b.c |    1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/realtek/pinctrl-rtd1619b.c +1 -0
index b07e50d6356d..e03e1fb09899 100644
@@ -1575,6 +1575,7 @@ static const struct of_device_id rtd1619b_pinctrl_of_match[] = {
 	{ .compatible = "realtek,rtd1619b-pinctrl", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, rtd1619b_pinctrl_of_match);
 
 static struct platform_driver rtd1619b_pinctrl_driver = {
 	.driver = {

base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137

Signature · 1 line
2.50.1 (Apple Git-155)
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 11 lines

PINCTRL_RTD1619B is tristate, and the driver uses the realtek,rtd1619b-pinctrl compatible to match its devices. However, the OF table is not exported, so a modular build does not advertise this alias for automatic module loading.

Add the OF export without changing probe or registration ordering.

The issue was found by our static-analysis tool.

Fixes c7910f6aca56 ("pinctrl: realtek: Add pinctrl driver for RTD1619B")
Assisted-by gpt 5
Quoted 27 lines

---
Changes since v1:
https://lore.kernel.org/all/[email protected]/
Use the full author name and regenerate the plain-text inline diff without embedded carriage returns.

 drivers/pinctrl/realtek/pinctrl-rtd1619b.c |    1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/realtek/pinctrl-rtd1619b.c +1 -0
index b07e50d6356d..e03e1fb09899 100644
@@ -1575,6 +1575,7 @@ static const struct of_device_id
 rtd1619b_pinctrl_of_match[] = {
        { .compatible = "realtek,rtd1619b-pinctrl", },
        {},
 };
+MODULE_DEVICE_TABLE(of, rtd1619b_pinctrl_of_match);
 
 static struct platform_driver rtd1619b_pinctrl_driver = {
        .driver = {

base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137 --
2.50.1 (Apple Git-155)