mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
b9ce15e6f7
commit
12e992f5a6
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user