2019-09-30 20:46:13

by Guido Günther

[permalink] [raw]
Subject: [PATCH 0/2] 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(+)

--
2.23.0.rc1


2019-09-30 20:46:28

by Guido Günther

[permalink] [raw]
Subject: [PATCH 1/2] regulator: bd718x7: Add MODULE_ALIAS()

This fixes device probing when built as a module

Signed-off-by: Guido Günther <[email protected]>
---
drivers/regulator/bd718x7-regulator.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/bd718x7-regulator.c b/drivers/regulator/bd718x7-regulator.c
index bdab46a5c461..13a43eee2e46 100644
--- a/drivers/regulator/bd718x7-regulator.c
+++ b/drivers/regulator/bd718x7-regulator.c
@@ -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");
--
2.23.0.rc1