Skip to content

Commit 7b2e5b9

Browse files
Jinjie Ruansre
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 919a471 commit 7b2e5b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/supply/max8998_charger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ static const struct platform_device_id max8998_battery_id[] = {
191191
{ "max8998-battery", TYPE_MAX8998 },
192192
{ }
193193
};
194+
MODULE_DEVICE_TABLE(platform, max8998_battery_id);
194195

195196
static struct platform_driver max8998_battery_driver = {
196197
.driver = {

0 commit comments

Comments
 (0)