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

power: supply: max8998_charger: Fix module autoloading

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>

authored by

Jinjie Ruan and committed by
Sebastian Reichel
7b2e5b9f 919a4719

+1
+1
drivers/power/supply/max8998_charger.c
··· 191 191 { "max8998-battery", TYPE_MAX8998 }, 192 192 { } 193 193 }; 194 + MODULE_DEVICE_TABLE(platform, max8998_battery_id); 194 195 195 196 static struct platform_driver max8998_battery_driver = { 196 197 .driver = {