Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Cc: stable@vger.kernel.org
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Reviewed-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20230612143651.959646-2-frattaroli.nicolas@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Nicolas Frattaroli and committed by
Sebastian Reichel
cbcdfbf5 e3505994

+1
+1
drivers/power/supply/rk817_charger.c
··· 1211 1211 MODULE_AUTHOR("Maya Matuszczyk <maccraft123mc@gmail.com>"); 1212 1212 MODULE_AUTHOR("Chris Morgan <macromorgan@hotmail.com>"); 1213 1213 MODULE_LICENSE("GPL"); 1214 + MODULE_ALIAS("platform:rk817-charger");