From patchwork Thu Nov 17 06:31:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye.xingchen@zte.com.cn X-Patchwork-Id: 21459 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp243936wrr; Wed, 16 Nov 2022 22:38:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6J3BPJBjzqStwiukuzp9Lz8oFDpUAk3I/icfDW4nXeiVRicNPcJvr6NZazb6+JX5eOJDTW X-Received: by 2002:a17:906:19d2:b0:78e:11ea:8528 with SMTP id h18-20020a17090619d200b0078e11ea8528mr1014965ejd.190.1668667097876; Wed, 16 Nov 2022 22:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668667097; cv=none; d=google.com; s=arc-20160816; b=N3QBhMH8wpwG1Tum0Ydo2Qltug4wMt4gzKUUuqH1cBDzH5xzg8s9q7+4NEN2g4ZYdL MjKSZ5Hat4fbrEjn9SelUEvKoQYxHE7efh7W5fhDTiKSjK2akK5tU7bCi7MwjkQCPYPN U8BXoJeIGB+Y3XDQck6JCTUlO17oQChk9F83a6f9PRTWWQ+fzdS9mHV/hbw2/CC7KEZi njkV72V+L9IZAyt14NwyJ81HvJUsf6eTxvekpLxCyZAb32O5EztSjsvzqyMnc4KHHiFb N5NBeiJ+vCAKIDrlgyHMUxhK10QBRRJw6bPpyRowJrFTyJ1LRNNqBNNWFQSFXdoRmOCm RrhA== 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=Ayc95Lib1CB5bG49CDlq6A3ELFkc7X/0xWbxfe2TB90=; b=ISfTczMCrRQg43+OYjcWPMvv27Ymc0zdhp9T6Jlt7yO7T8wmpna8bzP+ssxIwMgmo+ pRt1Fm1nDjDISVoViy614Q02f5IV+9SOR3TqsQU+sNTSqFrsc27E/F2cxIj+L1lgKjP4 1jdROURdQh+PUzr1aTaQDhS2aLMEKqBi5a7Z5IKFNfUGBJgFTHbmiAeM6xA64x0IL6x7 JZ2AiDZKoUI3fAyoMRAiCDvEea1ttmrMFq/Rthw5HWDg3k1FzGbyFlSrdG/lSZbxhUmS wwYLIzFjr1eOqrYNgM+4sKzYdGO0O7wDlDgg76caZdyqTnZsC/yPuXxPgFmkgjLy4TRk 4mpw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd39-20020a17090796a700b007ae72fcabb3si18735051ejc.838.2022.11.16.22.37.54; Wed, 16 Nov 2022 22:38:17 -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 S234615AbiKQGcH (ORCPT + 99 others); Thu, 17 Nov 2022 01:32:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbiKQGcF (ORCPT ); Thu, 17 Nov 2022 01:32:05 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32982DFAF for ; Wed, 16 Nov 2022 22:32:03 -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 mxct.zte.com.cn (FangMail) with ESMTPS id 4NCVSf0W3jz4y0vH; Thu, 17 Nov 2022 14:32:02 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AH6VokF020503; Thu, 17 Nov 2022 14:31:50 +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 14:31:52 +0800 (CST) Date: Thu, 17 Nov 2022 14:31:52 +0800 (CST) X-Zmail-TransId: 2af96375d558ffffffffbcb9afb4 X-Mailer: Zmail v1.0 Message-ID: <202211171431525183998@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , Subject: =?utf-8?q?=5BPATCH_linux-next=5D_drm/bridge=3A_Use_device=5Fmatch?= =?utf-8?q?=5Fof=5Fnode=28=29?= X-MAIL: mse-fl2.zte.com.cn 2AH6VokF020503 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.13.novalocal with ID 6375D562.000 by FangMail milter! X-FangMail-Envelope: 1668666722/4NCVSf0W3jz4y0vH/6375D562.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6375D562.000/4NCVSf0W3jz4y0vH 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749724270868992718?= X-GMAIL-MSGID: =?utf-8?q?1749724270868992718?= From: ye xingchen Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen --- drivers/gpu/drm/drm_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 1545c50fd1c8..4a8cafe2b130 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -1307,7 +1307,7 @@ struct drm_bridge *of_drm_find_bridge(struct device_node *np) mutex_lock(&bridge_lock); list_for_each_entry(bridge, &bridge_list, list) { - if (bridge->of_node == np) { + if (device_match_of_node(bridge, np)) { mutex_unlock(&bridge_lock); return bridge; }