diff options
| author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-13 08:55:06 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-24 02:16:05 -0400 |
| commit | d8cc38dd965d6b2ea657c142d4fd0a0a3ba9dec4 (patch) | |
| tree | 569a88d02d7aaaaafe2199e960b9535e747f4627 | |
| parent | caf5ee94be697f8df6d0292e19f3afa4d74745ce (diff) | |
dmaengine: qcom_hidma: use for_each_matching_node() macro
Use for_each_matching_node() macro instead of open coding it.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
| -rw-r--r-- | drivers/dma/qcom/hidma_mgmt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 6416dededd67..82f36e466083 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c | |||
| @@ -392,8 +392,7 @@ static int __init hidma_mgmt_init(void) | |||
| 392 | #if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ) | 392 | #if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ) |
| 393 | struct device_node *child; | 393 | struct device_node *child; |
| 394 | 394 | ||
| 395 | for (child = of_find_matching_node(NULL, hidma_mgmt_match); child; | 395 | for_each_matching_node(child, hidma_mgmt_match) { |
| 396 | child = of_find_matching_node(child, hidma_mgmt_match)) { | ||
| 397 | /* device tree based firmware here */ | 396 | /* device tree based firmware here */ |
| 398 | hidma_mgmt_of_populate_channels(child); | 397 | hidma_mgmt_of_populate_channels(child); |
| 399 | of_node_put(child); | 398 | of_node_put(child); |
