]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
power: bq27xxx_battery: fix platform probe
authorSebastian Reichel <sre@kernel.org>
Fri, 16 Oct 2015 13:44:10 +0000 (15:44 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 19 Oct 2015 08:37:25 +0000 (10:37 +0200)
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>
drivers/power/bq27xxx_battery.c

index 994c78d9f42675b47c7883e9314d3a465f9496b9..69e6b371a51c7f331524450c7e9b89eba238f0c9 100644 (file)
@@ -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;