Commit 0077ae7e authored by Sebastian Reichel's avatar Sebastian Reichel

power: bq27xxx_battery: fix platform probe

Add missing initialization of register mapping table to
platform probe function.
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
Acked-by: default avatarPali Rohár <pali.rohar@gmail.com>
Acked-by: default avatarAndrew F. Davis <afd@ti.com>
parent 0f4998cb
...@@ -1292,6 +1292,7 @@ static int bq27xxx_battery_platform_probe(struct platform_device *pdev) ...@@ -1292,6 +1292,7 @@ static int bq27xxx_battery_platform_probe(struct platform_device *pdev)
di->dev = &pdev->dev; di->dev = &pdev->dev;
di->chip = pdata->chip; di->chip = pdata->chip;
di->regs = bq27xxx_regs[di->chip];
name = pdata->name ?: dev_name(&pdev->dev); name = pdata->name ?: dev_name(&pdev->dev);
di->bus.read = &bq27xxx_battery_platform_read; di->bus.read = &bq27xxx_battery_platform_read;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment