Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1688932rwb; Wed, 16 Nov 2022 23:57:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf416VdJQi0WTcxm73zHctqtCdn/M8dpDXWmeXUuuTvtSvAOV4xDW70FKLSn6g5HCnRiBLFc X-Received: by 2002:a17:906:34d5:b0:7ae:b9fc:8668 with SMTP id h21-20020a17090634d500b007aeb9fc8668mr1094461ejb.257.1668671877357; Wed, 16 Nov 2022 23:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668671877; cv=none; d=google.com; s=arc-20160816; b=aU6a+FcuYQevEpdZF2L0GCeOvknMPgpIN9V+ggGjTwaHJdx84zE210Z0I5ajFjwEKf T/4hBFvJ6yDpfmFQ4BLwOM7eUMQjIhloCp6xIl6OVcAy4nS7GWbmmbS9xMQiQJ8z7BL4 neCy28oOHaC3yp47OoP5J0bPLnwMvyy9o26CRFlu+bKeE6Snx15c1DZzwIGM4pNYOWry SVumKJpbv1xHd2ZFBon0OwLJ5Vggy0kxFCQWtFpMvuInTw3h65ZBobXvxBaxjj5+SKA2 9i0fCa/3e2qQaGaR4OVg8SbMmHG+L+yVGWJcbSW5BX0h3vX4IR3QBVX/HKSucVl2CvFI OeAA== 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=n1hE4cmZWwgzFQ9gFWNmtyVB3nqSWo66znMn9MwRu2c=; b=yQhZIoquPRzMQIgjQM7kWGbP1uZ7EslRcfxjwlTeLmFj3jUKXcCE+HH0QR2sMedaC7 WSCg7Mho5wPYck5HMoOd9ItWXAfSB8CpXxfUm3JqPjal7QyoYbpCIw//SN0Remt1XyyM /gyEUqdeT43KTrWMDr0J1A/XE3CMEa3nq0eoR3VWld66rAiJh4emMgAWAN9o1srBPIde EcIFrYYma4guXZbKrJ8ZYwWqEQo2pku60YvKnywkuMA1O3JMtaElwm2ACvRJkTek7fBg +jXIASMveQtsh4REsEFqupdL9i4KMZpLWsZmW4L/JvXvrm0/WkOVZXQqryXv9C56sjtL 116w== 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 q18-20020a056402519200b0045a1dbedd92si362025edd.35.2022.11.16.23.57.35; Wed, 16 Nov 2022 23:57:57 -0800 (PST) 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 S234190AbiKQHlQ (ORCPT + 92 others); Thu, 17 Nov 2022 02:41:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbiKQHlO (ORCPT ); Thu, 17 Nov 2022 02:41:14 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C91F8333; Wed, 16 Nov 2022 23:41:12 -0800 (PST) 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 4NCX0R2wwHz8R039; Thu, 17 Nov 2022 15:41:11 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AH7f4ZX014225; Thu, 17 Nov 2022 15:41:04 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid31; Thu, 17 Nov 2022 15:41:06 +0800 (CST) Date: Thu, 17 Nov 2022 15:41:06 +0800 (CST) X-Zmail-TransId: 2af96375e5922f0755ff X-Mailer: Zmail v1.0 Message-ID: <202211171541061366938@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , Subject: =?UTF-8?B?W1BBVENIIGxpbnV4LW5leHRdIHJlbW90ZXByb2M6IGNvcmU6IFVzZSBkZXZpY2VfbWF0Y2hfb2Zfbm9kZSgp?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2AH7f4ZX014225 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 6375E597.000 by FangMail milter! X-FangMail-Envelope: 1668670871/4NCX0R2wwHz8R039/6375E597.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6375E597.000/4NCX0R2wwHz8R039 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham 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 device_match_of_node(). Signed-off-by: ye xingchen --- drivers/remoteproc/remoteproc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index cb1d414a2389..11c165ddf1fc 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -2112,7 +2112,7 @@ struct rproc *rproc_get_by_phandle(phandle phandle) rcu_read_lock(); list_for_each_entry_rcu(r, &rproc_list, node) { - if (r->dev.parent && r->dev.parent->of_node == np) { + if (r->dev.parent && device_match_of_node(r->dev.parent, np)) { /* prevent underlying implementation from being removed */ if (!try_module_get(r->dev.parent->driver->owner)) { dev_err(&r->dev, "can't get owner\n"); -- 2.25.1