From nobody Mon Feb 9 01:34:31 2026 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F6461D515B for ; Fri, 28 Mar 2025 09:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.216.63.40 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743152571; cv=none; b=YOoQ+1gUcnoNnJtn1xBCSGZmYhlewbhsJ3LDgsvSW5xOVFi4IWCiR2ojXO1Wiyvfxq2zDi+BWWZ5yv3YcOGDOsmOD3EneeG/0eCe5P5xlkmf62/TzEg7PoBeioZ1cfWmnwlVvOK1crOYWNE++I7yLClup0ch757rC03MeZSLe0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743152571; c=relaxed/simple; bh=Zv5dbReFel/EO6cMf8sg7s7FyaAfk1JbfOgKVejN9G0=; h=Date:Message-ID:Mime-Version:From:To:Cc:Subject:Content-Type; b=YVVtY71+g99Tur1AOAR9Sv+gDBHN0taa8gJ+Nk+UaL4r60hJIOYeXQBzk7/VItGHuR1WyQ0my5rUoUi/6SksxYofncmhTyO3mdCNri467Sv8RD+BwDVOoVqq7/dv8o5Wj9SOvSbhSRqLDHuxaSQ8Z4pd3K3B5sUY0XFmY1/zZug= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn; spf=pass smtp.mailfrom=zte.com.cn; arc=none smtp.client-ip=63.216.63.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn 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 mxhk.zte.com.cn (FangMail) with ESMTPS id 4ZPF0b0RnZz8RTZV; Fri, 28 Mar 2025 17:02:39 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.99.176]) by mse-fl1.zte.com.cn with SMTP id 52S92TvK075798; Fri, 28 Mar 2025 17:02:29 +0800 (+08) (envelope-from shao.mingyin@zte.com.cn) Received: from mapi (xaxapp04[null]) by mapi (Zmail) with MAPI id mid32; Fri, 28 Mar 2025 17:02:32 +0800 (CST) Date: Fri, 28 Mar 2025 17:02:32 +0800 (CST) X-Zmail-TransId: 2afb67e665a80d0-b5d3b X-Mailer: Zmail v1.0 Message-ID: <20250328170232003DGEGnXtJuqky8ri8DWMFQ@zte.com.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , , , , , , , , Subject: =?UTF-8?B?W1BBVENIXSBwaHkvYWxsd2lubmVyOiBwaHktc3VuNTBpLXVzYjM6IFVzZSBkZXZfZXJyX3Byb2JlKCk=?= X-MAIL: mse-fl1.zte.com.cn 52S92TvK075798 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 67E665AF.000/4ZPF0b0RnZz8RTZV Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/allwinner/phy-sun50i-usb3.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/allwinner/phy-sun50i-usb3.c b/drivers/phy/allwinne= r/phy-sun50i-usb3.c index 363f9a0df503..b03faffc160d 100644 --- a/drivers/phy/allwinner/phy-sun50i-usb3.c +++ b/drivers/phy/allwinner/phy-sun50i-usb3.c @@ -141,11 +141,9 @@ static int sun50i_usb3_phy_probe(struct platform_devic= e *pdev) return -ENOMEM; phy->clk =3D devm_clk_get(dev, NULL); - if (IS_ERR(phy->clk)) { - if (PTR_ERR(phy->clk) !=3D -EPROBE_DEFER) - dev_err(dev, "failed to get phy clock\n"); - return PTR_ERR(phy->clk); - } + if (IS_ERR(phy->clk)) + return dev_err_probe(dev, PTR_ERR(phy->clk), + "failed to get phy clock\n"); phy->reset =3D devm_reset_control_get(dev, NULL); if (IS_ERR(phy->reset)) { --=20 2.25.1