bd718xx: Fix probing when built as a module
Subsystems (3)
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
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(+)
drivers/regulator/bd718x7-regulator.c +1 -0
@@ -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
PATCH 2/2 clk: bd718x7: Add MODULE_ALIAS()
In reply to Guido GüntherThis fixes device probing when built as a module.
Signed-off-by Guido Günther <[email protected]>
--- drivers/clk/clk-bd718x7.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/clk-bd718x7.c +1 -0
@@ -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