summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2024-08-19 12:08:31 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-08-27 11:41:42 +0200
commit7b2e5b9f1d5ea84802ae5ff531ae1739acd97c54 (patch)
treea129fd93b8870ec381d16c3ac859b88e0b8a757f /drivers/power
parent919a4719026f68a9d6b5b87db2e935564cdf42a5 (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/max8998_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/max8998_charger.c b/drivers/power/supply/max8998_charger.c
index c26023b19f26..418b882b163d 100644
--- a/drivers/power/supply/max8998_charger.c
+++ b/drivers/power/supply/max8998_charger.c
@@ -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 = {