summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2015-10-16 15:44:10 +0200
committerSebastian Reichel <sre@kernel.org>2015-10-19 10:37:25 +0200
commit0077ae7e99de5720f8458e2db163fee77ee0fba5 (patch)
tree05217a1b2e4707ef94c45785301366703dfd3ec1
parent0f4998cbb25855afb47f500e96483d8c38ba1524 (diff)
downloadlinux-stable-0077ae7e99de5720f8458e2db163fee77ee0fba5.tar.gz
linux-stable-0077ae7e99de5720f8458e2db163fee77ee0fba5.tar.bz2
linux-stable-0077ae7e99de5720f8458e2db163fee77ee0fba5.zip
power: bq27xxx_battery: fix platform probe
Add missing initialization of register mapping table to platform probe function. Signed-off-by: Sebastian Reichel <sre@kernel.org> Acked-by: Pali Rohár <pali.rohar@gmail.com> Acked-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--drivers/power/bq27xxx_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/bq27xxx_battery.c b/drivers/power/bq27xxx_battery.c
index 994c78d9f426..69e6b371a51c 100644
--- a/drivers/power/bq27xxx_battery.c
+++ b/drivers/power/bq27xxx_battery.c
@@ -1292,6 +1292,7 @@ static int bq27xxx_battery_platform_probe(struct platform_device *pdev)
di->dev = &pdev->dev;
di->chip = pdata->chip;
+ di->regs = bq27xxx_regs[di->chip];
name = pdata->name ?: dev_name(&pdev->dev);
di->bus.read = &bq27xxx_battery_platform_read;