Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1132898pxj; Sat, 29 May 2021 04:20:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk9QDwG2gor93KPftwjOXVGfB9QAvlYlCWrboa8bC1Y05GOtmuQrrcU6FLXJxCkvtFmJq6 X-Received: by 2002:a02:900b:: with SMTP id w11mr12669135jaf.5.1622287254965; Sat, 29 May 2021 04:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622287254; cv=none; d=google.com; s=arc-20160816; b=eNGv4bX2scXwQy3fH8iZcyecE8ZWANZnaLF35Bv9UDZClYi2LyXi31gXhSUMO6cSl2 WGuaNyVT4uUnpUx4bAI/ity7pTvhlB5xuNchAQ76g0OVNb+YluqE+ReLGZB7FY4gl2xw JwOEik9iocneZtf4eKoON21OjLQVvQc+I6rDsZCWwh1CQjEDCtt2BjOK2hmgE3n6HgQx Am3vKPzoxRIn6CsDxnalOXyv2UOPQrR6V9KZmUTvJIXZbM/mgeSCkP+uDQMLl/cxbZkE x2j8s+tR2ZXFePhPrU+TYhVB5pGvO3eR2a19ReszqSqOe4fThDPPHj1iXt26e1yksEhu mVGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=sIRrznilbOWFdKwUw/UjzDmh9D+TJYfZGVcLzzNJpMA=; b=ONG0i422619ilPvXYwZ4aROH65I4mecIPlNp2cWQvsEuyvchFYiZ9s9wYJTUsN9G+4 sQCU/W9t4yJart3wlV7ceHazv8+YkJwj49mWU9ABa0wkjOI1zHDLbnasLiGjuPYrtIV1 O9B4yEY3SOg/CpR52Fl+M2c3fBY/omI2avusjmsiH7nUnCeJl1Xe/Z3A39RBnQdUOsog aqNgqx/TUYZIOfVVwoVlq5KtC7CTEX3y2J8qCR/MY6aQtXZvM+sMh2QWTk+wBBoCG+9s Vg/pb0Ox37OSNlrIiC9NSIPE11nqUDQCV5PmKqCWuQWLKYqejV2iaV/eo4G7xMJelKVl PqFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si9991885jap.36.2021.05.29.04.20.41; Sat, 29 May 2021 04:20:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbhE2LVg (ORCPT + 99 others); Sat, 29 May 2021 07:21:36 -0400 Received: from fgw21-7.mail.saunalahti.fi ([62.142.5.82]:38857 "EHLO fgw21-7.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhE2LVU (ORCPT ); Sat, 29 May 2021 07:21:20 -0400 Received: from localhost (88-115-248-186.elisa-laajakaista.fi [88.115.248.186]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id c3473160-c06f-11eb-9eb8-005056bdd08f; Sat, 29 May 2021 14:19:41 +0300 (EEST) From: Andy Shevchenko To: Pavel Machek , Andy Shevchenko , Amireddy Mallikarjuna reddy , Linus Walleij , Abanoub Sameh , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Krzysztof Kozlowski , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/13] leds: lgm-sso: Don't spam logs when probe is deferred Date: Sat, 29 May 2021 14:19:27 +0300 Message-Id: <20210529111935.3849707-5-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210529111935.3849707-1-andy.shevchenko@gmail.com> References: <20210529111935.3849707-1-andy.shevchenko@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When requesting GPIO line the probe can be deferred. In such case don't spam logs with an error message. This can be achieved by switching to dev_err_probe(). Fixes: c3987cd2bca3 ("leds: lgm: Add LED controller driver for LGM SoC") Cc: Amireddy Mallikarjuna reddy Signed-off-by: Andy Shevchenko --- v2: fixed authorship / committer (Pavel) drivers/leds/blink/leds-lgm-sso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/blink/leds-lgm-sso.c b/drivers/leds/blink/leds-lgm-sso.c index a27687e0fc04..877b44594b26 100644 --- a/drivers/leds/blink/leds-lgm-sso.c +++ b/drivers/leds/blink/leds-lgm-sso.c @@ -646,7 +646,7 @@ __sso_led_dt_parse(struct sso_led_priv *priv, struct fwnode_handle *fw_ssoled) fwnode_child, GPIOD_ASIS, NULL); if (IS_ERR(led->gpiod)) { - dev_err(dev, "led: get gpio fail!\n"); + dev_err_probe(dev, PTR_ERR(led->gpiod), "led: get gpio fail!\n"); goto __dt_err; } -- 2.31.1