summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-05-30 19:40:30 +0300
committerSebastian Reichel <sre@kernel.org>2020-06-06 01:13:56 +0200
commit152204dbdcee6df9406f87c81f9591aeaf1ba55b (patch)
treee8301ad7efc1c47b3eae4f832bec95c6bc92dba8 /drivers/power
parent5a1c9565c07b981449d8432cab2927cbeca73476 (diff)
downloadlinux-152204dbdcee6df9406f87c81f9591aeaf1ba55b.tar.bz2
power: supply: cw2015: Attach OF ID table to the driver
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 <lkp@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-By: Tobias Schramm <t.schramm@manjaro.org> Tested-By: Tobias Schramm <t.schramm@manjaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/cw2015_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c
index 19f62ea957ee..0146f1bfc29b 100644
--- a/drivers/power/supply/cw2015_battery.c
+++ b/drivers/power/supply/cw2015_battery.c
@@ -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,