diff options
author | 2020-02-20 21:58:12 -0300 | |
---|---|---|
committer | 2020-02-24 18:04:43 +0100 | |
commit | 5b11e5d784c2dab41cd3171f4d297bdcac1b85ed (patch) | |
tree | 7ecc338dd884d299a67567d5347fddc46feda3cf /drivers/power | |
parent | Linux 5.6-rc1 (diff) | |
download | linux-5b11e5d784c2dab41cd3171f4d297bdcac1b85ed.tar.gz linux-5b11e5d784c2dab41cd3171f4d297bdcac1b85ed.tar.bz2 linux-5b11e5d784c2dab41cd3171f4d297bdcac1b85ed.zip |
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/ingenic-battery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/supply/ingenic-battery.c b/drivers/power/supply/ingenic-battery.c index 2748715c4c75..dd3d93dfe3eb 100644 --- a/drivers/power/supply/ingenic-battery.c +++ b/drivers/power/supply/ingenic-battery.c @@ -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); } |