From 4b49bbb8e9a7cb74bc86343d1666602b00333de4 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Mon, 1 Feb 2021 18:30:03 -0800 Subject: [PATCH] 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: Subbaraman Narayanamurthy --- drivers/pwm/pwm-qti-lpg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-qti-lpg.c b/drivers/pwm/pwm-qti-lpg.c index fd55379083a7..0bfb7687a03e 100644 --- a/drivers/pwm/pwm-qti-lpg.c +++ b/drivers/pwm/pwm-qti-lpg.c @@ -1,6 +1,6 @@ // 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,7 +1686,8 @@ static int qpnp_lpg_probe(struct platform_device *pdev) mutex_init(&chip->bus_lock); rc = qpnp_lpg_parse_dt(chip); if (rc < 0) { - dev_err(chip->dev, "Devicetree properties parsing failed, rc=%d\n", + if (rc != -EPROBE_DEFER) + dev_err(chip->dev, "Devicetree properties parsing failed, rc=%d\n", rc); goto err_out; }