leds: leds-qti-tri-led: 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: I5d7781baa1fdfaf1abaccb3b0bfbee3f14eeea24
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2021-02-01 18:33:16 -08:00 committed by Gerrit - the friendly Code Review server
parent b9ce15e6f7
commit 12e992f5a6

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019, 2021, The Linux Foundation. All rights reserved.
*/
#include <linux/bitops.h>
@ -577,7 +577,8 @@ static int qpnp_tri_led_probe(struct platform_device *pdev)
rc = qpnp_tri_led_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);
return rc;
}