X-Received: by 2002:a17:90a:52:b0:1b9:bda3:1105 with SMTP id 18-20020a17090a005200b001b9bda31105mr2288518pjb.19.1645505850136; Mon, 21 Feb 2022 20:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645505850; cv=none; d=google.com; s=arc-20160816; b=Mfmm2/q9L7+kN92P7Ga+kGfmXyYI7Y1T5/oa58lYh6BoeIcH4NUKuAydIi/JauKmVa NDmrrwqrXyWGptY+X+yfS22RKQ56JGftesrmcd29btYW4ZUFoehvWLEbMMbn6sXss9XK aTU8ZZjjiI37vcdKI29TRvcAy4dddhBXxyshqXciPplH6/2MSgJ8JFdjdWByhkOaz8xy B/7+NiL0JLRK/FrqnDgLzwM+UjmWvHY0dGlNQmUVt+UYdfE9CqVAqBbCDCBAG2gpLAa/ 6fe5i5sBsewSFDR7cLIIpnXkZ+1I3nLbRVDYz2dET2sMPTKbtbXYVo21NVpVfnCY99oE fzRA== 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=Pp9G/c3QwkOp6wXoYGDPefSV4uTx5tSXlBe9l0FGuOw=; b=BRILOvXHi4JGwTC/9GAFQgZBZPaPkRjtFEJnfebaK/A7Xg3myw91xG2A/Dwc3Een8G 96gg+o7QuPjzPs70RoOMBbe78nV7sUdLAjz0ErGZMEvAkMrwsPFDgYeiEnVzj+s31HfR E9PdrK/fC1ZN8XzeDDikC9p9HHNWzMQCMgIsVe1ZLUI5n/LS+4Zd2pAvD98Ts7EPrhOy mSG/DqL/Z3x8gQc1jZzc+Q8PnljjRw0Vunas9sPTQUDQsKDx744jrlFU8HTodYczuAY3 hO2IFvuy+inhdUuu6re71VMGRQzfv2Dui38UHTX+dy9Yxa3RGm4j8UDYK1UL4mrt+vr2 K+UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UwhH+lSi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lx11-20020a17090b4b0b00b001b96905a7c3si1162283pjb.173.2022.02.21.20.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:57:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UwhH+lSi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89BAA62CA; Mon, 21 Feb 2022 20:34:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352977AbiBUKJP (ORCPT + 99 others); Mon, 21 Feb 2022 05:09:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353589AbiBUJ5e (ORCPT ); Mon, 21 Feb 2022 04:57:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7F6B1EAF0; Mon, 21 Feb 2022 01:27:03 -0800 (PST) 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 53C446101C; Mon, 21 Feb 2022 09:27:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 327E7C58339; Mon, 21 Feb 2022 09:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435622; bh=6suctJEObTMyjXIebBno+7Rimc7/9sHGbBTfa2mh2BM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UwhH+lSiAe1a9bxpHd9AALGYsFf6KguKFKhyyEz9qNrHNEkgNQDNHBGK1EluF4Hsh CwpODIgY5xDRXx5BmyUhIZZi3jwqTN0ou/M9aIaYvx4E5QCJ1hDaPhzf7OOuuiMSHE a9SXmjE/NPbdY194fY+bI9yARq998KlMb5cwLvKk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jae Hyun Yoo , Joel Stanley , Andrew Jeffery , Iwona Winiarska , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.16 217/227] soc: aspeed: lpc-ctrl: Block error printing on probe defer cases Date: Mon, 21 Feb 2022 09:50:36 +0100 Message-Id: <20220221084942.026902311@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Jae Hyun Yoo [ Upstream commit 301a5d3ad2432d7829f59432ca0a93a6defbb9a1 ] Add a checking code when it gets -EPROBE_DEFER while getting a clock resource. In this case, it doesn't need to print out an error message because the probing will be re-visited. Signed-off-by: Jae Hyun Yoo Signed-off-by: Joel Stanley Reviewed-by: Andrew Jeffery Reviewed-by: Iwona Winiarska Link: https://lore.kernel.org/r/20211104173709.222912-1-jae.hyun.yoo@intel.com Link: https://lore.kernel.org/r/20220201070118.196372-1-joel@jms.id.au' Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- drivers/soc/aspeed/aspeed-lpc-ctrl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/soc/aspeed/aspeed-lpc-ctrl.c b/drivers/soc/aspeed/aspeed-lpc-ctrl.c index 72771e018c42e..258894ed234b3 100644 --- a/drivers/soc/aspeed/aspeed-lpc-ctrl.c +++ b/drivers/soc/aspeed/aspeed-lpc-ctrl.c @@ -306,10 +306,9 @@ static int aspeed_lpc_ctrl_probe(struct platform_device *pdev) } lpc_ctrl->clk = devm_clk_get(dev, NULL); - if (IS_ERR(lpc_ctrl->clk)) { - dev_err(dev, "couldn't get clock\n"); - return PTR_ERR(lpc_ctrl->clk); - } + if (IS_ERR(lpc_ctrl->clk)) + return dev_err_probe(dev, PTR_ERR(lpc_ctrl->clk), + "couldn't get clock\n"); rc = clk_prepare_enable(lpc_ctrl->clk); if (rc) { dev_err(dev, "couldn't enable clock\n"); -- 2.34.1