Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3094645rwb; Mon, 15 Aug 2022 18:00:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ashg41c8JZWkoz6tEVxVVfPN2qqdZkbYF3LMo4ZDDqw+6XyvMoYV1r+afErS9scZ6RzIA X-Received: by 2002:a17:907:1c98:b0:730:d0bc:977c with SMTP id nb24-20020a1709071c9800b00730d0bc977cmr11832518ejc.321.1660611610474; Mon, 15 Aug 2022 18:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611610; cv=none; d=google.com; s=arc-20160816; b=iqbzLtVXVtb/m7j7mvNg2omb0jc4Rep5aU0qTgrVAE6LA26q/pelvfEFr4be4ZlENJ oJUZBGE82bQfRz8XuzVpunds4hZ3ZF61gcNE2e7+wW23xikA9ZV409CWR9fvRKB67X7l QdmPgZdb21lYP6HIO3xn0u7LElgKJGCX9AWL230qOhOZkAyUzmWAnztmwxp8MAKFmJJa vTQgGb4UWQtDt/OgiMYAo8gfyVFgwX5kgB3ZlRs2EQgrdBO/i0RbN9J+XNE2Z/vYkDeS 803pdmmwl6EGrX4fGySHuYU4AzgGNFWLC/Bj5Ce5ubf6XkT+lRWJfhucmQXDBXZ900FJ 7w1Q== 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=igdsRj2CiUIfU+SxfNcfPLjFy9o5yxtA0EP78TqPgr4=; b=C0ONG+0lnohoyzy+nN1o4di7lhLTf015Wnf3aFtuI9KhDF4NNZHXGsr6MnoylmmihI YN7fxXBmuVIgU+zKxhhKA2WvaCqYedrbbJc2MBxl/WK1hBRfgBnakSqi/CuXfC9WgNpn 1UkjMWXOiT4kIDSx/wk3sT051nu+nVVYBS+yQkU1jTw2ZxfCzLrZsZ0GP8jeIJ3s78U6 xkV/fH8DgziL784v+S6Xy/iLg5ZXyDDZSdgAXOREDDkmRYEURXCel7AYTVGgq1baIXB2 xWR4AkUFAo4h5SV/ImvF7I41rBsAD53JWgQH5rShWnbPy5nOnWC0ky7QbOsEXo9rs0Za TUtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KdjFe1Di; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020a50c309000000b0043d8844cfcesi8753201edb.363.2022.08.15.17.59.39; Mon, 15 Aug 2022 18:00:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KdjFe1Di; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243682AbiHPAuj (ORCPT + 99 others); Mon, 15 Aug 2022 20:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347607AbiHPAp7 (ORCPT ); Mon, 15 Aug 2022 20:45:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94F7DCCE2B; Mon, 15 Aug 2022 13:41:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 24A0B61233; Mon, 15 Aug 2022 20:41:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 165DBC433C1; Mon, 15 Aug 2022 20:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596072; bh=j/BFoTsk82o3gdJ5J8f/QcpIjyfX3s+y4+Ck4YqHTms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KdjFe1DiliM57nKowYR44A68LtnL2WASYgEPvuob2qR4K89Iikoo8PSkM9YiIZykE zOM/pwvoqzcuw1IAJc1GWddUtnYassIZrB19NL7NFJJ3QnvB64gAE7Vp3nmPvwiAwG hcdGf7M3MqTmBiDVgGWD3i6GMTpEEjrSuaNbxj7w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emil Renner Berthing , Geert Uytterhoeven , Pavel Machek , Sasha Levin Subject: [PATCH 5.19 0963/1157] leds: pwm-multicolor: Dont show -EPROBE_DEFER as errors Date: Mon, 15 Aug 2022 20:05:19 +0200 Message-Id: <20220815180518.176425275@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emil Renner Berthing [ Upstream commit 399e7aa82105ea46d8998fa535b047541c48030f ] When requesting a PWM it might return -EPROBE_DEFER if it hasn't probed yet. This is not an error, so just propagate the -EPROBE_DEFER without logging anything. There is already dev_err_probe for exactly this situation. Fixes: 9fa2762110dd ("leds: Add PWM multicolor driver") Signed-off-by: Emil Renner Berthing Reviewed-by: Geert Uytterhoeven Signed-off-by: Pavel Machek Signed-off-by: Sasha Levin --- drivers/leds/rgb/leds-pwm-multicolor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/leds/rgb/leds-pwm-multicolor.c b/drivers/leds/rgb/leds-pwm-multicolor.c index 45e38708ecb1..eb67b89d28e9 100644 --- a/drivers/leds/rgb/leds-pwm-multicolor.c +++ b/drivers/leds/rgb/leds-pwm-multicolor.c @@ -72,8 +72,7 @@ static int iterate_subleds(struct device *dev, struct pwm_mc_led *priv, pwmled = &priv->leds[priv->mc_cdev.num_colors]; pwmled->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); if (IS_ERR(pwmled->pwm)) { - ret = PTR_ERR(pwmled->pwm); - dev_err(dev, "unable to request PWM: %d\n", ret); + ret = dev_err_probe(dev, PTR_ERR(pwmled->pwm), "unable to request PWM\n"); goto release_fwnode; } pwm_init_state(pwmled->pwm, &pwmled->state); -- 2.35.1