Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp93489pxb; Mon, 13 Sep 2021 13:54:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWKFEzDXJ22ac96RjPQspKm0un7g8Cvi7Z2BK5dmxl43e66EL6RtaliD08fRsKVz04u6Un X-Received: by 2002:aa7:d7d5:: with SMTP id e21mr15480767eds.27.1631566458265; Mon, 13 Sep 2021 13:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631566458; cv=none; d=google.com; s=arc-20160816; b=06R2d7paou+yjr1RpT71P+RRMYk/VklUrgOjUZ2KhKtIyp3+UuJXSG6pyyXC+wP1/5 5+8NJ7yKkCBM4JSpzRWXg8u4CtehyjaHaZTvEJngyf+QqGWL7zzkVm1U4OrV/5PVB1Mn oBgkmxTiqC3PHDoiCwfrQe7bB1N3qSUVhkMAe2hvNpA+qtlBxVqnPdF4heLHyJW++gW7 kE7BtnkYak1KmKJ5SwSraEahMBWHOpZXvkLtQhJVWj0hIj/sCESPLNVf3V8PjA4mGfJO jZkBxxgzSWcwqvUJkgPSHndvDZjyLx76AuA6uGG4TtBJ3ZpxSuRLKT48reIlPwiRn5gB SxFA== 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=NcXW563LJhMApv3G/H7qOLI4z8EyhJNZIczhiSPGoMzmGyLyImhpQp6CUvMcgY/76/ hxmKVWGhcknht6hKHfoERly80sSCzERzXyjm9oEJA+fbwZuxhayqP5t3L8SsXbAsHkgD 4vIlMJbtdqh88YUfNpAZT3C4QztKBcOz0k3l5/ilDlfBo0Oe2LGc5KPJVQcwn/HDncM4 AC6n74p7/doIOQhHwHONasPZ/Zqu7fUZKDFDmndWdwQDaXkaWOeG+hTend/smqGS6F9L k1AHd39umHa0678DmZ07zPEPAy5s6BIUc3G3JbATPZY1yw0Bfit0DIEYUVx84OBzXPb1 pFcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dpa1sT+m; 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 10si8385926ejw.91.2021.09.13.13.53.54; Mon, 13 Sep 2021 13:54:18 -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=dpa1sT+m; 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 S245274AbhIMNya (ORCPT + 99 others); Mon, 13 Sep 2021 09:54:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:34742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244862AbhIMNuy (ORCPT ); Mon, 13 Sep 2021 09:50:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9AE7A61381; Mon, 13 Sep 2021 13:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631540025; bh=Ot+28yzud98tBNnOiqNPW6YBHnIqP50O9qr9lr6+dQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dpa1sT+mgaIxiy7Y6gRhYTKenYTgz+VYnPnip+yr5t9PosIH6AL1i+eGbbr+HhK+7 FUzBvTv8Q7eVfRjXvoMxaS4zur6/Rl2NPOyLNkp7+muueL2fYPZyU+1HmX/Rb5DwCF wLbj4/niRSmCghWPK7R6KneXxeKhGLW/CLF/OX1w= 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.13 003/300] regulator: tps65910: Silence deferred probe error Date: Mon, 13 Sep 2021 15:11:04 +0200 Message-Id: <20210913131109.388231442@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131109.253835823@linuxfoundation.org> References: <20210913131109.253835823@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