]> Git Repo - linux.git/commitdiff
power: supply: cw2015: Attach OF ID table to the driver
authorAndy Shevchenko <[email protected]>
Sat, 30 May 2020 16:40:30 +0000 (19:40 +0300)
committerSebastian Reichel <[email protected]>
Fri, 5 Jun 2020 23:13:56 +0000 (01:13 +0200)
It appears that OF ID table was hanging around without being attached
to the driver. Attach it properly.

Fixes: b4c7715c10c1 ("power: supply: add CellWise cw2015 fuel gauge driver")
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-By: Tobias Schramm <[email protected]>
Tested-By: Tobias Schramm <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
drivers/power/supply/cw2015_battery.c

index 19f62ea957ee17489e2854004d3148c08a165d4b..0146f1bfc29bb5b4ec1e61c2eb76b3255b525c6b 100644 (file)
@@ -734,6 +734,7 @@ MODULE_DEVICE_TABLE(of, cw2015_of_match);
 static struct i2c_driver cw_bat_driver = {
        .driver = {
                .name = "cw2015",
+               .of_match_table = cw2015_of_match,
                .pm = &cw_bat_pm_ops,
        },
        .probe_new = cw_bat_probe,
This page took 0.053935 seconds and 4 git commands to generate.