Skip to content

Commit

Permalink
power: supply: cw2015: Attach OF ID table to the driver
Browse files Browse the repository at this point in the history
It appears that OF ID table was hanging around without being attached
to the driver. Attach it properly.

Fixes: b4c7715 ("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]>
  • Loading branch information
andy-shev authored and sre committed Jun 5, 2020
1 parent 5a1c956 commit 152204d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/supply/cw2015_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 152204d

Please sign in to comment.