Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3991665ybg; Tue, 29 Oct 2019 00:03:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2UylSPtvKymTdPTKpFraTWu9RXwEIWkHASu/6iNfIkl9crltjxxafYyBOMoOc4TvrfyAG X-Received: by 2002:a50:f74b:: with SMTP id j11mr5868886edn.71.1572332634376; Tue, 29 Oct 2019 00:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572332634; cv=none; d=google.com; s=arc-20160816; b=AeibsjD0rs8NkuuNkVJbxLdFhUK8aB6IXkGw/nU2jgMyjJj/4NCDyPQ2uEsMptfzTL CuSEsIDyqifVZf/thPX8/QcLPzSAxpWHCSLD5Kw7JNX6y/PO5InhLpwE+RkIDWKfhvax DJCgtWCzjdixZc/EjBTMipxXx8WOUQHDDtXUhaKFDf2o/HKCJ1U3kvy6dLJGw3cMR8Pa o9IA2Gk081jo1rK+xGx0YA874IpoYxRcrOXK9aQIIDnlfrndCiiGKq4VEBsZBDZC3Lx6 koV/I/JbnYt1oNEBbnq8RjVN2pCzWacmuRSVmnjJuRDMBm+adf9uG7/Bm2XrRqBcQ1kk IQnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jDHnRZm14GJI/8ZawxhtbbZIWpFs2vGKs23EmX+ANjU=; b=RRonOxdNrTzNzBn3q3Bi2mQJHt6IA+UmUKOcLFpIvge5+A596eId4YLX/sEz+VBfj7 lU1jfK7MkfDXUVcW0SpA8xumF5zjNF80qMmIHNraEc6uZ21RIYz9Ln4gBPDpO51TGvGt 6N2v+l2zS4RrMLFwLYQbtTV7Z6RdtxbpMAreK4VAg25AZZS2oSwZQDhbBz1B5d1ARxI3 rPZoRcHT0R4V6TvzZ2gns8boSLvmjxFLwFBXGDoLP9/GBQxxo5IH2bSp1Em7wOKnOvJj o5hy1jNVWGB0cVhFzAsiH8iaqBTD5Hqqf1i0UTsgddVuYk1zFM5Jz01f4B6WnrKsohTr P5tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="C6DbVAC/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si8545302edd.8.2019.10.29.00.03.30; Tue, 29 Oct 2019 00:03:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="C6DbVAC/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727002AbfJ2AnL (ORCPT + 99 others); Mon, 28 Oct 2019 20:43:11 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:35475 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbfJ2AnL (ORCPT ); Mon, 28 Oct 2019 20:43:11 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 5508A886BF; Tue, 29 Oct 2019 13:43:09 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1572309789; bh=jDHnRZm14GJI/8ZawxhtbbZIWpFs2vGKs23EmX+ANjU=; h=From:To:Cc:Subject:Date; b=C6DbVAC/sjb2SdWjw1hWifHjWXfZv7k7QSmIVGTLMetbsZWqCpaUBAfnCrEdnmmP8 Z3kaiwpiOabGlQ4yMxlaOmVUHfR16399DB1iJIKdn+4pro0Rp7+qLRrBsI2Zo/2GXL 83uOZ+Dk1NKHA9VjLWsioxo5cMBEF4ZDC64eCeJ+Eim0zth2OLd4w/4t/hTX4ZMfvx mx20O6BYUxOOrq4Sus8YpdkDNpiCCKuIQWstlUOCc7Q6yC62KiNN/Sz1AD8zAmuz9x HsOsM9XfF1tUTHmRS1a44IqRZo8VS6lScn8EMFzKfmTMND+aSbbR6bhKVlwrRX8yAZ n56SuKarCj7Qw== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Tue, 29 Oct 2019 13:43:09 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.20]) by smtp (Postfix) with ESMTP id ADC5013EE9C; Tue, 29 Oct 2019 13:43:09 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id EF3D128005C; Tue, 29 Oct 2019 13:43:08 +1300 (NZDT) From: Chris Packham To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH] power: reset: gpio-restart: don't error on deferral Date: Tue, 29 Oct 2019 13:43:02 +1300 Message-Id: <20191029004302.384-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't generate an error message when devm_gpiod_get fails with -EPROBE_DEFER. Signed-off-by: Chris Packham --- drivers/power/reset/gpio-restart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/reset/gpio-restart.c b/drivers/power/reset/gpi= o-restart.c index 308ca9d9d276..4aaa46b80ba2 100644 --- a/drivers/power/reset/gpio-restart.c +++ b/drivers/power/reset/gpio-restart.c @@ -65,7 +65,8 @@ static int gpio_restart_probe(struct platform_device *p= dev) gpio_restart->reset_gpio =3D devm_gpiod_get(&pdev->dev, NULL, open_source ? GPIOD_IN : GPIOD_OUT_LOW); if (IS_ERR(gpio_restart->reset_gpio)) { - dev_err(&pdev->dev, "Could not get reset GPIO\n"); + if (PTR_ERR(gpio_restart->reset_gpio) !=3D -EPROBE_DEFER) + dev_err(&pdev->dev, "Could not get reset GPIO\n"); return PTR_ERR(gpio_restart->reset_gpio); } =20 --=20 2.23.0