power: bq27xxx_battery: fix platform probe

Add missing initialization of register mapping table to
platform probe function.

Signed-off-by: Sebastian Reichel <[email protected]>
Acked-by: Pali Rohár <[email protected]>
Acked-by: Andrew F. Davis <[email protected]>
This commit is contained in:
Sebastian Reichel 2015-10-16 15:44:10 +02:00
commit 0077ae7e99

View 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;