From 9da4152d376cacee7f74f37080fc3c459309e1da Mon Sep 17 00:00:00 2001 From: Pengpeng Hou Date: Sat, 4 Jul 2026 23:24:28 +0800 Subject: [PATCH] power: supply: cw2015_battery: add missing MODULE_DEVICE_TABLE() The driver has a match table for the i2c bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE(). Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading. This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication. Signed-off-by: Pengpeng Hou Link: https://patch.msgid.link/20260704152428.51844-1-pengpeng@iscas.ac.cn Signed-off-by: Sebastian Reichel --- drivers/power/supply/cw2015_battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c index 7496295d2948..1bcb60cf763d 100644 --- a/drivers/power/supply/cw2015_battery.c +++ b/drivers/power/supply/cw2015_battery.c @@ -736,6 +736,7 @@ static const struct i2c_device_id cw_bat_id_table[] = { { .name = "cw2015" }, { } }; +MODULE_DEVICE_TABLE(i2c, cw_bat_id_table); static const struct of_device_id cw2015_of_match[] = { { .compatible = "cellwise,cw2015" },