mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
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>
This commit is contained in:
parent
919a471902
commit
7b2e5b9f1d
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user