From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55C54C3ABD5 for ; Mon, 12 May 2025 11:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:Cc:To:From:Mime-Version: References:In-Reply-To:Message-ID:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WIi7xVzV05bz0uQY0uvqRW4wDGyZNeaYUJZNy3YLYm0=; b=GPwgfgmK6YC34Aqvo7fiaKQZ2A P498jf3RzhQaZC6pVcnr69u6+BlNVkG+Pj71+MVZET4Y0hpL+BsfMT+ObMjiPiG9d2iiesLMc7mKa IHLi3Y+8s7mramcAvn42Hiq69Urs6K3WdRpxfOykYDz3TH18cGP2dIWugZHE4lT9JTsgb+HwN5V/c Xu4c80ZrTKh019ngNn+DE0FY0CgE8wptJnJYZeU2qykQxnyPku6NkM1AR7y05LKChUXTXXlMOLorP wwz1/J/pXqGsKDM6EqpdJylGET8F5c3nvJhyYRA1et6+XRxaSeQ+gENymPr69unWCwwq7cybSsRXL qm5chCwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uER9f-00000009E8b-0CW7; Mon, 12 May 2025 11:17:07 +0000 Received: from mxct.zte.com.cn ([183.62.165.209]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzwWW-00000005xD1-2f7w; Wed, 02 Apr 2025 11:44:49 +0000 Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4ZSNMG2x1sz4x5ph; Wed, 2 Apr 2025 19:44:42 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.99.176]) by mse-fl1.zte.com.cn with SMTP id 532Bidbx069351; Wed, 2 Apr 2025 19:44:39 +0800 (+08) (envelope-from shao.mingyin@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid32; Wed, 2 Apr 2025 19:44:42 +0800 (CST) Date: Wed, 2 Apr 2025 19:44:42 +0800 (CST) X-Zmail-TransId: 2afa67ed232a199-28a86 X-Mailer: Zmail v1.0 Message-ID: <20250402194442934NKPLNa40VjBaWDWKBGi8l@zte.com.cn> In-Reply-To: <20250402194100610qY6KQ4JPISk-4v214Qs36@zte.com.cn> References: 20250402194100610qY6KQ4JPISk-4v214Qs36@zte.com.cn Mime-Version: 1.0 From: To: , Cc: , , , , , , , , , , , , , , , Subject: =?UTF-8?B?W1BBVENIIGxpbnV4LW5leHQgNC81XSBwaHk6IGxhbnRpcTogcGh5LWxhbnRpcS1yY3UtdXNiMjogVXNlwqBkZXZfZXJyX3Byb2JlKCk=?= X-MAIL: mse-fl1.zte.com.cn 532Bidbx069351 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 67ED232A.001/4ZSNMG2x1sz4x5ph X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250402_044448_837008_21B0F9BC X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Mailman-Approved-At: Mon, 12 May 2025 03:59:00 -0700 X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Zhang Enpei Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Zhang Enpei Signed-off-by: Shao Mingyin --- drivers/phy/lantiq/phy-lantiq-rcu-usb2.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c b/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c index 82f1ffc0b0ad..7e4e42d62dbc 100644 --- a/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c +++ b/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c @@ -192,11 +192,9 @@ static int ltq_rcu_usb2_of_parse(struct ltq_rcu_usb2_priv *priv, } priv->ctrl_reset = devm_reset_control_get_shared(dev, "ctrl"); - if (IS_ERR(priv->ctrl_reset)) { - if (PTR_ERR(priv->ctrl_reset) != -EPROBE_DEFER) - dev_err(dev, "failed to get 'ctrl' reset\n"); - return PTR_ERR(priv->ctrl_reset); - } + if (IS_ERR(priv->ctrl_reset)) + return dev_err_probe(dev, PTR_ERR(priv->ctrl_reset), + "failed to get 'ctrl' reset\n"); priv->phy_reset = devm_reset_control_get_optional(dev, "phy"); -- 2.25.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy