Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7249673rwl; Thu, 23 Mar 2023 01:17:57 -0700 (PDT) X-Google-Smtp-Source: AK7set+STdg/HHuuEb7j4uyPTiumv4oTImsTE3rHd++QZS+UM8fJXJIekojjLmuioPe5Hf2Jmta+ X-Received: by 2002:a17:906:aed6:b0:8e9:afb1:65c6 with SMTP id me22-20020a170906aed600b008e9afb165c6mr4912576ejb.13.1679559477695; Thu, 23 Mar 2023 01:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679559477; cv=none; d=google.com; s=arc-20160816; b=PBKDrUez8D8fZICLhcUqQqO4osRSrf0WDH+yjIMgih0nwFi34OvR+gXIH8SyuxLpl/ zoAvqXxIV4XNI9zdkFHu41FcpDK79LDqgoyX/fNktO728uCSlOvexHmvGtYKYF1BveEm 5xlpiHTuxNbODh8wavP444LzWFs9Ou3T9OFsi/KWfumB6P/NOihnGPgpcvI6enSloS1C HGgfcmQCPsI5czrLmDRmCHfLkMPonilERAx6CvJCl2Lf3PBTzyt2XYJdcIUl6R3kCjYj hPr+jWRLUsfP7bBprlD1E2gVE+gQhP1QoCBzJNPSNuxxh07FtWzWQ7nsq0Ug+2uAJxwI 6kSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=6Xhdi2+a9AJDFDgaHTgcsXj3sl2cByVZtHsPQSraeMQ=; b=RIIc01q3GYLLNlcCuXlGHLHx6Ybbd6ZSYZ9XwY9dcehVFKZ8RCWzfao3gj10gxaa80 H7F01fL7RL9l6rUw4aJK0JfIRwUV3A9oaK3tPEyEP5hS2/sRJ3SOjkYQ6+hCp+2XRmdT ZRkUBGrLfsDGfVlTFQoest46LWhjvucx+XTZWJ7LBAzxwjgXgfwACH5uSCBkwPfeVVtr 0vvaC52oxCzAWeUtknX4npbaEDuMpjgyKDFvVxjfO4yJdh3G8UZspe6/kMbDyPP7YhVh w0NWJv4i7bmpwAq/oiObW96W72DftznwV172TSokh8Fn6feyTPEc8GKUcpLiWiTSTyBY DJdg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vw9-20020a170907a70900b00934f9a52925si9982851ejc.76.2023.03.23.01.17.33; Thu, 23 Mar 2023 01:17:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbjCWIBD (ORCPT + 99 others); Thu, 23 Mar 2023 04:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjCWIBC (ORCPT ); Thu, 23 Mar 2023 04:01:02 -0400 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFA65F974; Thu, 23 Mar 2023 01:00:57 -0700 (PDT) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (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 4PhyT32mhZz8RTZK; Thu, 23 Mar 2023 16:00:55 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.99.176]) by mse-fl2.zte.com.cn with SMTP id 32N80lxC026494; Thu, 23 Mar 2023 16:00:47 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Thu, 23 Mar 2023 16:00:49 +0800 (CST) Date: Thu, 23 Mar 2023 16:00:49 +0800 (CST) X-Zmail-TransId: 2afa641c07315a3-b4765 X-Mailer: Zmail v1.0 Message-ID: <202303231600496082749@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , Subject: =?UTF-8?B?W1BBVENIXSByZW1vdGVwcm9jL2RhdmluY2k6IFVzZSBkZXZfZXJyX3Byb2JlKCk=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 32N80lxC026494 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 641C0737.002 by FangMail milter! X-FangMail-Envelope: 1679558455/4PhyT32mhZz8RTZK/641C0737.002/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 641C0737.002/4PhyT32mhZz8RTZK X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable 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: Ye Xingchen Replace the open-code with dev_err_probe() to simplify the code. Signed-off-by: Ye Xingchen --- drivers/remoteproc/da8xx_remoteproc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/remoteproc/da8xx_remoteproc.c b/drivers/remoteproc/da8xx_remoteproc.c index 98e0be9476a4..b2b7d3347949 100644 --- a/drivers/remoteproc/da8xx_remoteproc.c +++ b/drivers/remoteproc/da8xx_remoteproc.c @@ -278,13 +278,9 @@ static int da8xx_rproc_probe(struct platform_device *pdev) } dsp_reset = devm_reset_control_get_exclusive(dev, NULL); - if (IS_ERR(dsp_reset)) { - if (PTR_ERR(dsp_reset) != -EPROBE_DEFER) - dev_err(dev, "unable to get reset control: %ld\n", - PTR_ERR(dsp_reset)); - - return PTR_ERR(dsp_reset); - } + if (IS_ERR(dsp_reset)) + return dev_err_probe(dev, PTR_ERR(dsp_reset), + "unable to get reset control: %ld\n"); if (dev->of_node) { ret = of_reserved_mem_device_init(dev); -- 2.25.1