Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3926122pxj; Mon, 21 Jun 2021 09:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzblY6W7ts7GmDM56kAdTDulUZNy1S7sKSpMuYSdozZNxA9Frslc9snoazdNg0CxuAr4Iqw X-Received: by 2002:a05:6e02:20c8:: with SMTP id 8mr18253859ilq.67.1624293076909; Mon, 21 Jun 2021 09:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293076; cv=none; d=google.com; s=arc-20160816; b=BtETJHXJcPd8GhZpaP69jRLeQTMf4wcgZ7+hBd4mH7LhX+Ez8VCGlxaSWYH/el3hQ3 m7OhlAgJc1b1+bKE8s7+TJVVUIp2YIXFYxZsYOU4ld0R1XtGHXOBDnqQW7cqlf1HFEx7 uEokP+pRROpTUGXeAdKNadK17jqnXWIopkB2i3DWkrFAUHyb5c7jEWAcXxPdAmWs9LVJ OGO+0w50DdsvM9uR9yCOfvJwBSIb6K+h6VHaLSfMqkrAIj4L/Qy+VzDdik3TUVYkZbTU ZISSLcU6SS+26Wii6496HPkb48UqKxX90tbH5okYV7A5Vt6uvJjruWf0dfvp9cCqDoeY pzUQ== 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=pXOYyIydnz6iXcG/BpQ18/CW+Q8Y+Ln3ybDsHODhMCPScXhBe5tQQvVia/Y4vFKMwU xZAJgjXVJln3lWkF667LqH0REgvNBDls24ZOpMzwwKuFxMZ24tMLhS9vNzhwtbsDUMcL u7kkcvqO6CBq6tjydGEEwTky6j/k3Y7d5HhpvdWFVbu+k3rW2QZTWAgOBNrNl1kGoR/g Vl1G3OwG9XdE5TMol5+SaF7Qa5ZdwKY3oi/j8JZ+YqtDRLIZigmbrcikqX/Ja9qQHcNo V/vqkcKiiF+SkGAvSUBAVLpm9JM7wEuXC4rbb+5thE+WhKL+76L8phTau9ME3KXWZQLn 9MuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lh7d0CqD; 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 s21si171739jan.102.2021.06.21.09.30.39; Mon, 21 Jun 2021 09:31:16 -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=Lh7d0CqD; 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 S232390AbhFUQbQ (ORCPT + 99 others); Mon, 21 Jun 2021 12:31:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:48572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232355AbhFUQ3Q (ORCPT ); Mon, 21 Jun 2021 12:29:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5C94B613F5; Mon, 21 Jun 2021 16:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292642; bh=Nid7jggVe/PAW3eV73p0RQ07l3cgKqshs4Xx82lieVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lh7d0CqDwmps+p304DOvP+Nv1VtHuB4vRgtWoWk5qBLqmAcZPtQIXolaYdXZJ9+GO 2lS0BaKfmsDnIoVnWhTk5/TUT+MzUsLnCJ79CA/xyg1lZOyeB4QSqDDDxiZBFOvTiC qBTRBGFfxC6TO+m3iDJr5YSUEhOxrmuAb9qza1bU= 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.10 075/146] regulator: max77620: Silence deferred probe error Date: Mon, 21 Jun 2021 18:15:05 +0200 Message-Id: <20210621154915.673171222@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@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