Commit 7d90fcc1 authored by Tony Lindgren's avatar Tony Lindgren Committed by Sebastian Reichel
Browse files

power: supply: cpcap-charger: Fix pointless EPROBE_DEFER warnings



With loadable modules we may get the following during init:

could not initialize VBUS or ID IIO: -517

Let's not print any pointless error messages for deferred probe.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent ffaf6f67
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -574,6 +574,7 @@ static int cpcap_charger_init_iio(struct cpcap_charger_ddata *ddata)
	return 0;

out_err:
	if (error != -EPROBE_DEFER)
		dev_err(ddata->dev, "could not initialize VBUS or ID IIO: %i\n",
			error);