Skip to contentSkip to conversation

power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading

PATCH In review Matti Vaittinen 2 participants 2 messages Oct 23, 2019 – Oct 27, 2019 Power supply

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading

The bd70528 charger driver is probed by MFD driver. Add MODULE_ALIAS in order to allow udev to load the module when MFD sub-device cell for charger is added.

Fixes f8c7f7ddd8ef0 ("power: supply: Initial support for ROHM BD70528 PMIC charger block")

---

Not sure if this should be bugfix or new feature. I don't think Fixes tag is a problem though.

 drivers/power/supply/bd70528-charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bd70528-charger.c +1 -0
index 1bb32b7226d7..b8e1ec106627 100644
@@ -741,3 +741,4 @@ module_platform_driver(bd70528_power);
 MODULE_AUTHOR("Matti Vaittinen <[email protected]>");
 MODULE_DESCRIPTION("BD70528 power-supply driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd70528-power");
Signature · 14 lines
2.21.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =] 
#1 lore raw

Hi,

Quoted 7 lines · Matti Vaittinen

The bd70528 charger driver is probed by MFD driver. Add MODULE_ALIAS in order to allow udev to load the module when MFD sub-device cell for charger is added.

Fixes f8c7f7ddd8ef0 ("power: supply: Initial support for ROHM BD70528 PMIC charger block")

---

Thanks, queued.

-- Sebastian

Quoted 31 lines

Not sure if this should be bugfix or new feature. I don't think Fixes tag is a problem though.

 drivers/power/supply/bd70528-charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bd70528-charger.c +1 -0
index 1bb32b7226d7..b8e1ec106627 100644
@@ -741,3 +741,4 @@ module_platform_driver(bd70528_power);
 MODULE_AUTHOR("Matti Vaittinen <[email protected]>");
 MODULE_DESCRIPTION("BD70528 power-supply driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd70528-power");
Signature · 14 lines
2.21.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =]