From 0077ae7e99de5720f8458e2db163fee77ee0fba5 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 16 Oct 2015 15:44:10 +0200 Subject: power: bq27xxx_battery: fix platform probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing initialization of register mapping table to platform probe function. Signed-off-by: Sebastian Reichel Acked-by: Pali Rohár Acked-by: Andrew F. Davis --- drivers/power/bq27xxx_battery.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/power') 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; -- cgit v1.2.3