Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3937411pxj; Mon, 21 Jun 2021 09:45:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvBMQS/qpGvipPUkccZFVb5hU3787xbv5/tXj1C0fzi0nbYaV8v4QbYYEQrOx6I/FCbujf X-Received: by 2002:a05:6638:c2:: with SMTP id w2mr6698288jao.38.1624293941375; Mon, 21 Jun 2021 09:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293941; cv=none; d=google.com; s=arc-20160816; b=RY0fwe2Z8eawLiOw+Tlb4W0tbmBH8W28+XKtzVG71ELqnTg+ozIuaHSFfkPozM5GyW EPBSn2Ar01eAnQWDZPdL95+4q0QlM0rcE1/NyS+ygSwRzm202f45drY4FaT/61xe+MCe myB1PGVZID+CpA94B07VGYYed96tZi2lvd3opnAK8PPCgLqIVXTiD+JdLUK3VpPaID7H +FQBXDb/BbQmSGvgr/nYTj1F8/htpCcX2Kt0mXUzf0b5mfVnkbI8tklN1ASJJ3mDs+aD yLGq89E+3YRzhO+3bAnOBKb6BNiY225+Uk2sfw+lA9hxh4QOqhhvXQhb26ZkGFgJx7GQ ioNA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E+DLAeFi19c9SOAVny0wc2sOlvBp+7GKmgAEjU1PY6E=; b=Q9+4eySwukqwnyBfygjtNuVjylI7/Ls3/AoBF5V3wha6rnkdlSuTqol8tTBvsWBVRW viu897nUXkf7YD7ayKNLLZoaxqV0btg8WGBqd8VEkdbYZwihiHXVR8z9DlWk2cfw2Zth enu+/4tLV1O6fUafc65r/7EOdOQ1pGzfINjaWwackipmpRjS1ObcNt7sy8QUPCBWmPmf vzJyas92jlX2xcireiDgUlN+o4OfNd6aWS58ngIQVWUYSpT5VfeF8gQoOrM9iaH1RC3j 2hfGMjLA7TGYMJhCljjq3Cd2CAw24+No5O9hypiFTPg3o4ja2ske+B4JaknlkKJCZmKW kuxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SiLyOgcX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e3si16443595ioq.19.2021.06.21.09.45.29; Mon, 21 Jun 2021 09:45:41 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SiLyOgcX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231980AbhFUQrL (ORCPT + 99 others); Mon, 21 Jun 2021 12:47:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:33594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233088AbhFUQmA (ORCPT ); Mon, 21 Jun 2021 12:42:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69D1261402; Mon, 21 Jun 2021 16:31:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293078; bh=Nid7jggVe/PAW3eV73p0RQ07l3cgKqshs4Xx82lieVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SiLyOgcX+GVhcGawJHdaZmkVJq0Cvf3gCPD5Ni17+gicuTaJVsM2/BygP9Pw/UPtQ TSv6NABGASmnygjI004da71qChAe6bxJ0U1EKh2D16F9LZEMoY0dBLj5AHXr79Lxsi UtB27DrR5AmYHcMuphzkC0cwG7BDlZUQPrXhfnao= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Mark Brown , Sasha Levin Subject: [PATCH 5.12 089/178] regulator: max77620: Silence deferred probe error Date: Mon, 21 Jun 2021 18:15:03 +0200 Message-Id: <20210621154925.720664715@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Osipenko [ Upstream commit 62499a94ce5b9a41047dbadaad885347b1176079 ] One of previous changes to regulator core causes PMIC regulators to re-probe until supply regulator is registered. Silence noisy error message about the deferred probe. Signed-off-by: Dmitry Osipenko Link: https://lore.kernel.org/r/20210523224243.13219-3-digetx@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/max77620-regulator.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/max77620-regulator.c b/drivers/regulator/max77620-regulator.c index 5c439c850d09..3cf8f085170a 100644 --- a/drivers/regulator/max77620-regulator.c +++ b/drivers/regulator/max77620-regulator.c @@ -846,12 +846,10 @@ static int max77620_regulator_probe(struct platform_device *pdev) return ret; rdev = devm_regulator_register(dev, rdesc, &config); - if (IS_ERR(rdev)) { - ret = PTR_ERR(rdev); - dev_err(dev, "Regulator registration %s failed: %d\n", - rdesc->name, ret); - return ret; - } + if (IS_ERR(rdev)) + return dev_err_probe(dev, PTR_ERR(rdev), + "Regulator registration %s failed\n", + rdesc->name); } return 0; -- 2.30.2