Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: Use device_match_of_node() helper

Instead of open coding, use device_match_of_node() helper.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260109173718.3605829-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Andy Shevchenko and committed by
Vinod Koul
d42a8378 f709b38e

+1 -1
+1 -1
drivers/dma/dmaengine.c
··· 765 765 mutex_lock(&dma_list_mutex); 766 766 list_for_each_entry_safe(device, _d, &dma_device_list, global_node) { 767 767 /* Finds a DMA controller with matching device node */ 768 - if (np && device->dev->of_node && np != device->dev->of_node) 768 + if (np && !device_match_of_node(device->dev, np)) 769 769 continue; 770 770 771 771 chan = find_candidate(device, mask, fn, fn_param);