Skip to contentSkip to conversation

bd718xx: Fix probing when built as a module

PATCH New Guido Günther 1 participant 3 messages Sep 30, 2019

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

cover bd718xx: Fix probing when built as a module

Add MODULE_ALIAS("platform:<drivername>") so the drivers of the subdevices get loaded with the mfd driver. Without that the regulator and clk drivers would never be loaded when built as a module.

Guido Günther (2):
regulator: bd718x7: Add MODULE_ALIAS()
clk: bd718x7: Add MODULE_ALIAS()

 drivers/clk/clk-bd718x7.c             | 1 +
 drivers/regulator/bd718x7-regulator.c | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.23.0.rc1
#1 lore raw

PATCH 1/2 regulator: bd718x7: Add MODULE_ALIAS()

This fixes device probing when built as a module

---
 drivers/regulator/bd718x7-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/bd718x7-regulator.c +1 -0
index bdab46a5c461..13a43eee2e46 100644
@@ -1293,3 +1293,4 @@ module_platform_driver(bd718xx_regulator);
 MODULE_AUTHOR("Matti Vaittinen <[email protected]>");
 MODULE_DESCRIPTION("BD71837/BD71847 voltage regulator driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd718xx-pmic");
Signature · 1 line
2.23.0.rc1
#2 lore raw

PATCH 2/2 clk: bd718x7: Add MODULE_ALIAS()

In reply to Guido Günther

This fixes device probing when built as a module.

---
 drivers/clk/clk-bd718x7.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/clk-bd718x7.c +1 -0
index ae6e5baee330..00926c587390 100644
@@ -133,3 +133,4 @@ module_platform_driver(bd71837_clk);
 MODULE_AUTHOR("Matti Vaittinen <[email protected]>");
 MODULE_DESCRIPTION("BD71837/BD71847/BD70528 chip clk driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd718xx-clk");
Signature · 1 line
2.23.0.rc1