Skip to contentSkip to conversation

power: supply: rk817: Add missing module alias

PATCH Applied Nicolas Frattaroli 3 participants 3 messages Jun 12, 2023 – Sep 14, 2023

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

PATCH 1/1 power: supply: rk817: Add missing module alias

Similar to the rk817 codec alias that was missing, the rk817 charger driver is missing a module alias as well. This absence prevents the driver from autoprobing on OF systems when it is built as a module.

Add the right MODULE_ALIAS to fix this.

Fixes 11cb8da0189b ("power: supply: Add charger driver for Rockchip RK817")
---
 drivers/power/supply/rk817_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/rk817_charger.c +1 -0
index 1a2143641e66..76b991e112da 100644
@@ -1211,3 +1211,4 @@ MODULE_DESCRIPTION("Battery power supply driver for RK817 PMIC");
 MODULE_AUTHOR("Maya Matuszczyk <[email protected]>");
 MODULE_AUTHOR("Chris Morgan <[email protected]>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:rk817-charger");
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Nicolas Frattaroli

Similar to the rk817 codec alias that was missing, the rk817 charger driver is missing a module alias as well. This absence prevents the driver from autoprobing on OF systems when it is built as a module.

Add the right MODULE_ALIAS to fix this.

Good catch, thank you.

Quoted 19 lines
Fixes 11cb8da0189b ("power: supply: Add charger driver for Rockchip RK817")
---
 drivers/power/supply/rk817_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/rk817_charger.c +1 -0
index 1a2143641e66..76b991e112da 100644
@@ -1211,3 +1211,4 @@ MODULE_DESCRIPTION("Battery power supply driver for RK817 PMIC");
 MODULE_AUTHOR("Maya Matuszczyk <[email protected]>");
 MODULE_AUTHOR("Chris Morgan <[email protected]>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:rk817-charger");
Signature · 1 line
2.41.0
#2 lore raw
In reply to Nicolas Frattaroli
Quoted 8 lines · Nicolas Frattaroli

Similar to the rk817 codec alias that was missing, the rk817 charger driver is missing a module alias as well. This absence prevents the driver from autoprobing on OF systems when it is built as a module.

Add the right MODULE_ALIAS to fix this.

[...]

Applied, thanks!

[1/1] power: supply: rk817: Add missing module alias

      commit: cbcdfbf5a6cd66e47e5ee5d49c4c5a27a07ba082

Best regards,

Signature · 7 lines
Sebastian Reichel <[email protected]>


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip