public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] dmaengine: of-dma: Use device_match_of_node()
@ 2022-11-17  5:41 ye.xingchen
  2022-11-17 21:10 ` kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: ye.xingchen @ 2022-11-17  5:41 UTC (permalink / raw)
  To: vkoul; +Cc: dmaengine, linux-kernel

From: ye xingchen <ye.xingchen@zte.com.cn>

Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/dma/of-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c
index ac61ecda2926..8281a4aebca8 100644
--- a/drivers/dma/of-dma.c
+++ b/drivers/dma/of-dma.c
@@ -157,7 +157,7 @@ void of_dma_controller_free(struct device_node *np)
 	mutex_lock(&of_dma_lock);

 	list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers)
-		if (ofdma->of_node == np) {
+		if (device_match_of_node(ofdma, np)) {
 			list_del(&ofdma->of_dma_controllers);
 			kfree(ofdma);
 			break;
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-17 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-17  5:41 [PATCH linux-next] dmaengine: of-dma: Use device_match_of_node() ye.xingchen
2022-11-17 21:10 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox