]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
power: supply: max8998_charger: Fix module autoloading
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 19 Aug 2024 04:08:31 +0000 (12:08 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 27 Aug 2024 09:41:42 +0000 (11:41 +0200)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from platform_device_id table.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240819040831.2801543-1-ruanjinjie@huawei.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max8998_charger.c

index c26023b19f267fc63abaedd614267fb4a5fbe16f..418b882b163d18cb24591e7fc91a3bafe2bfb406 100644 (file)
@@ -191,6 +191,7 @@ static const struct platform_device_id max8998_battery_id[] = {
        { "max8998-battery", TYPE_MAX8998 },
        { }
 };
+MODULE_DEVICE_TABLE(platform, max8998_battery_id);
 
 static struct platform_driver max8998_battery_driver = {
        .driver = {