mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04: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
4940a483a6
commit
e15bf7f4bf
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue