From: ye xingchen <ye.xingchen@xxxxxxxxxx> Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen <ye.xingchen@xxxxxxxxxx> --- 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