Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4940a483 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Gerrit - the friendly Code Review server
Browse files

pwm: pwm-qti-lpg: Don't print error log for -EPROBE_DEFER



Currently, an error log is printed every time when parsing a DT
property fails because of probe deferral. Fix it.

Change-Id: Ic63c18393494b38bfb09a7ca85fd738dd2de56fd
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent c4f0b4f1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "%s: " fmt, __func__
@@ -1686,6 +1686,7 @@ static int qpnp_lpg_probe(struct platform_device *pdev)
	mutex_init(&chip->bus_lock);
	rc = qpnp_lpg_parse_dt(chip);
	if (rc < 0) {
		if (rc != -EPROBE_DEFER)
			dev_err(chip->dev, "Devicetree properties parsing failed, rc=%d\n",
				rc);
		goto err_out;