From patchwork Wed Apr 2 11:43:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shao.mingyin@zte.com.cn X-Patchwork-Id: 14035831 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 49EDF23875A; Wed, 2 Apr 2025 11:43:26 +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=1743594208; cv=none; b=WaNmrygUya9s0hrR0ISMFkL/JoYldNKTWXUVUjc5C3o6iwZeyBL/QJWeBMYpdZW0vbYxSThHkVgehDXNjSRwZ9Y1Wa3B7GjPR+WOiijAdqrpltOr62PAlfqyac8e6H8hLV8HN+VdoFU619LAu9BeEB/Ke9JQ/VydsApnqe12vj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743594208; c=relaxed/simple; bh=Wgqp5CEb0vSe5kauJHqhAOn3abMfSbPpqSVemJyahHk=; h=Date:Message-ID:In-Reply-To:References:Mime-Version:From:To:Cc: Subject:Content-Type; b=K8cjTWRq6SZQ62nutjz4Io+BlnXkWaxg4ja8WunwXM1luAfQUi7iU5LMehpVrneKcLNlkXeBk0eIpatBlfNo61mryhRyrHyTOYrv/cvM8rHix6oYmVFLev7/sXtjvBpDe7uoMsmfh4ktt/dqpl08s3iOMHKUneFQXN+8Y+PQ2F0= 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 4ZSNKh4Gvnz8R044; Wed, 2 Apr 2025 19:43:20 +0800 (CST) Received: from xaxapp02.zte.com.cn ([10.88.97.241]) by mse-fl1.zte.com.cn with SMTP id 532Bh1AM068443; Wed, 2 Apr 2025 19:43:01 +0800 (+08) (envelope-from shao.mingyin@zte.com.cn) Received: from mapi (xaxapp04[null]) by mapi (Zmail) with MAPI id mid32; Wed, 2 Apr 2025 19:43:03 +0800 (CST) Date: Wed, 2 Apr 2025 19:43:03 +0800 (CST) X-Zmail-TransId: 2afb67ed22c75b0-20ea5 X-Mailer: Zmail v1.0 Message-ID: <20250402194303339EE86jtSNtWFpLPkS6WiQh@zte.com.cn> In-Reply-To: <20250402194100610qY6KQ4JPISk-4v214Qs36@zte.com.cn> References: 20250402194100610qY6KQ4JPISk-4v214Qs36@zte.com.cn Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: , Cc: , , , , , , , , , , , , , , , Subject: =?utf-8?q?=5BPATCH_linux-next_2/5=5D_phy=3A_broadcom=3A_phy-bcm63xx?= =?utf-8?q?-usbh=3A_Use=C2=A0dev=5Ferr=5Fprobe=28=29?= X-MAIL: mse-fl1.zte.com.cn 532Bh1AM068443 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 67ED22D8.003/4ZSNKh4Gvnz8R044 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/broadcom/phy-bcm63xx-usbh.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/broadcom/phy-bcm63xx-usbh.c b/drivers/phy/broadcom/phy-bcm63xx-usbh.c index 647644de041b..b9e7f750567c 100644 --- a/drivers/phy/broadcom/phy-bcm63xx-usbh.c +++ b/drivers/phy/broadcom/phy-bcm63xx-usbh.c @@ -397,11 +397,9 @@ static int __init bcm63xx_usbh_phy_probe(struct platform_device *pdev) return PTR_ERR(usbh->base); usbh->reset = devm_reset_control_get_exclusive(dev, NULL); - if (IS_ERR(usbh->reset)) { - if (PTR_ERR(usbh->reset) != -EPROBE_DEFER) - dev_err(dev, "failed to get reset\n"); - return PTR_ERR(usbh->reset); - } + if (IS_ERR(usbh->reset)) + return dev_err_probe(dev, PTR_ERR(usbh->reset), + "failed to get reset\n"); usbh->usbh_clk = devm_clk_get_optional(dev, "usbh"); if (IS_ERR(usbh->usbh_clk))