Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1675140rwb; Wed, 16 Nov 2022 23:37:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jJ5sqdG08X2j8pCbPadLiA0CvMvndzMwJURwCoXlkZPI4s9xbngI/Oi6YUBYDVRNGZOwN X-Received: by 2002:a05:6a00:4509:b0:562:641b:c1b2 with SMTP id cw9-20020a056a00450900b00562641bc1b2mr1913904pfb.8.1668670679483; Wed, 16 Nov 2022 23:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668670679; cv=none; d=google.com; s=arc-20160816; b=mfh5ZYnM/Kr+GaFOKVM0ecLzV9BnJp2tLSxFxndS2b0MfjAIROeDniTWtoMFVRZNu9 NvLH3KbTYjfLlslG5/fEEC+DVX2CjYexy4BI5jqULsa8xdOkYpgzCcSTp1xtYYpXDguz lidIjSyuEDcLg6V0kORFt1tsP9kFDkbwKH0yLR5fkJuEZ9qAHc+FAMxaOp4pDGms76Md 1zOwfHLmpKDnTHkykKeFwT2U5kiIZwvZxwcKDVYLhISK7p7v09n6HX/byqPnJR86V32e GFLd2Ru2taBH/JkwXTLkW2WzsPUaj8T6ibm3lnjL1o84mVRgxqKV+rETzALmwaBNlK+n 1csA== 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=xpw+zB4EhkLtCMAT/KbFlLjeVNpLzxSFDZa1u6fDMdQ=; b=p6+iKwaKgMEX2HvANKRxDrZPWwZX1kWD5funFB61lMpkf26IB5EOdZbwvB1rqhVZ0D CEmJ1j3iU40Q//MUhFG04BpD01cgczlkc4J2ie5MIdR7/m76pErb6qW4hZA6iNG6bGkb EfDg3pKDiWe53CXNFSSEB7/cBiRclsdS3ZnAc3Zl8bphivVXy9l2UviEvVP6bykd2789 NdxRe6/dDTKNiNuw/q+LQGh/NT+KVza5h9eLUuRFGWrTUVgDjdUeh/m5sAHmQVhuOf85 uHraw9ciXe9MI4W5BYdAGhG922m7LWn9BuHL4Vlh5a0rr/W0Jb28IYaSw/ASswraUHyn RLTQ== 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 q13-20020a056a00084d00b00537d8aa3bc3si260432pfk.200.2022.11.16.23.37.47; Wed, 16 Nov 2022 23:37:59 -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 S239175AbiKQHRm (ORCPT + 92 others); Thu, 17 Nov 2022 02:17:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232395AbiKQHRk (ORCPT ); Thu, 17 Nov 2022 02:17:40 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734496F34F for ; Wed, 16 Nov 2022 23:17:39 -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 4NCWTG0gJLz4xVnk; Thu, 17 Nov 2022 15:17:38 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AH7HR4k083074; Thu, 17 Nov 2022 15:17:27 +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:17:29 +0800 (CST) Date: Thu, 17 Nov 2022 15:17:29 +0800 (CST) X-Zmail-TransId: 2af96375e00976d30ac1 X-Mailer: Zmail v1.0 Message-ID: <202211171517291515920@zte.com.cn> Mime-Version: 1.0 From: To: Cc: Subject: =?UTF-8?B?W1BBVENIIGxpbnV4LW5leHRdIGh0ZTogVXNlIGRldmljZV9tYXRjaF9vZl9ub2RlKCk=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2AH7HR4k083074 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.138.novalocal with ID 6375E012.000 by FangMail milter! X-FangMail-Envelope: 1668669458/4NCWTG0gJLz4xVnk/6375E012.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6375E012.000/4NCWTG0gJLz4xVnk X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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/hte/hte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hte/hte.c b/drivers/hte/hte.c index 7c3b4476f890..5ae81fb31683 100644 --- a/drivers/hte/hte.c +++ b/drivers/hte/hte.c @@ -444,7 +444,7 @@ static struct hte_device *of_node_to_htedevice(struct device_node *np) list_for_each_entry(gdev, &hte_devices, list) if (gdev->chip && gdev->chip->dev && - gdev->chip->dev->of_node == np) { + device_match_of_node(gdev->chip->dev, np)) { spin_unlock(&hte_lock); return gdev; } -- 2.25.1