power/supply: ingenic-battery: Don't print error on -EPROBE_DEFER
Don't print an error message if devm_power_supply_register() returns -EPROBE_DEFER, since the driver will simply re-probe later. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
bb6d3fb354
commit
5b11e5d784
|
@ -148,7 +148,8 @@ static int ingenic_battery_probe(struct platform_device *pdev)
|
|||
|
||||
bat->battery = devm_power_supply_register(dev, desc, &psy_cfg);
|
||||
if (IS_ERR(bat->battery)) {
|
||||
dev_err(dev, "Unable to register battery\n");
|
||||
if (PTR_ERR(bat->battery) != -EPROBE_DEFER)
|
||||
dev_err(dev, "Unable to register battery\n");
|
||||
return PTR_ERR(bat->battery);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue