Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1838264pxb; Mon, 13 Sep 2021 06:39:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/EjOI6qG4yzJ880rP3UlakFjDiycHwKhq+VFiYFP/JbVlQLZ4eNcbY6nbd69TpLb4NDNC X-Received: by 2002:a6b:8b54:: with SMTP id n81mr9097213iod.5.1631540396042; Mon, 13 Sep 2021 06:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631540396; cv=none; d=google.com; s=arc-20160816; b=FWtmAkMi+SLaR3xpy4aJrEW2HXbbO+SYEbHEiqHtQD2bmedVjZ8uarU2xl7tkjY/hh ud/i9xmPsIwcfVfWBGbFUrca4xQc9Xumy5qDTc3BUatS5xR9fiegaYm4wft3KU5mopmp HytDQ2I6zfW+VGwCW3LkPSEnZ8Q82bos8mkgAB0XWqftSQGQRPJyirzwM+WFq68a86A1 vnUNVMcSDqDocACW9Eu3IjyIKjIiEGbGmCj06ttUScolgWwphXY14px+k7ouAYUE2Eyr JMlb7OOi5048A63OmQYk+L1CyvUsD62yceG5zJPqcQTSTtV56bUDRRSzWhwFfjls9Qij Bl4w== 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=S1hgP7lGApDXxSpQFkRmkf2EJEYF8ELsyBbB8yeaZhM=; b=OIOWrmWss1avlPwZj34bNQb5C7ZFILFjLacI9w+Hc/s75oaxXFHyn86N9/q7HzzBIU e2LJ2Ye4F8So3Bc7JYGx96lTuFBzlxl2vyerCecnIKQIHdpI9J4XRyO18gtjy7ABgyun PgMyMK7RPJ+53cpXmE3GLCAGdRde4A2kCmNn3puMNSm0m6aPpxoS93K9E2+SRHldVJnM 9HmTfV+fBE8XaYE/BiUDGKjdOvGvh4JWYzKwwcaOSoTk/0iXYAAWgZXAUqCN7vPNSJNm a1a4x6BU9ccD1D8nd9GNhvXJiiLE9wxfqE8/3birKJNc4g8jJj6DAFJMW/+iexKwLPAz 1Kpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ORik520N; 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 d7si7628290ilg.5.2021.09.13.06.39.42; Mon, 13 Sep 2021 06:39:56 -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=ORik520N; 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 S243367AbhIMNj1 (ORCPT + 99 others); Mon, 13 Sep 2021 09:39:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:46826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242431AbhIMN3Z (ORCPT ); Mon, 13 Sep 2021 09:29:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 213706127C; Mon, 13 Sep 2021 13:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539442; bh=Ot+28yzud98tBNnOiqNPW6YBHnIqP50O9qr9lr6+dQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ORik520NMJMx2VwHYbegxDdE7QwE6On3LCQhfs9tc+zYmN/vZh+SqChKK12EOkEi9 Tr50qOBO1t2WAC+KeSW/ZCapJ+t5b4zi5546eD7KJcbPrNPat8uHCzQPcU9bhmUF7S nlxfpXoJJ+GnUlXwidhZw4A5XOBK1MuHdqm4gS5Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Mark Brown , Sasha Levin , Matt Merhar Subject: [PATCH 5.10 003/236] regulator: tps65910: Silence deferred probe error Date: Mon, 13 Sep 2021 15:11:48 +0200 Message-Id: <20210913131100.434781737@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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 e301df76472cc929fa62d923bc3892931f7ad71d ] The TPS65910 regulator now gets a deferred probe until supply regulator is registered. Silence noisy error message about the deferred probe. Reported-by: Matt Merhar # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko Link: https://lore.kernel.org/r/20210705201211.16082-1-digetx@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/tps65910-regulator.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index 1d5b0a1b86f7..06cbe60c990f 100644 --- a/drivers/regulator/tps65910-regulator.c +++ b/drivers/regulator/tps65910-regulator.c @@ -1211,12 +1211,10 @@ static int tps65910_probe(struct platform_device *pdev) rdev = devm_regulator_register(&pdev->dev, &pmic->desc[i], &config); - if (IS_ERR(rdev)) { - dev_err(tps65910->dev, - "failed to register %s regulator\n", - pdev->name); - return PTR_ERR(rdev); - } + if (IS_ERR(rdev)) + return dev_err_probe(tps65910->dev, PTR_ERR(rdev), + "failed to register %s regulator\n", + pdev->name); /* Save regulator for cleanup */ pmic->rdev[i] = rdev; -- 2.30.2