of-dma.c (eeca9fad52fc4bfdf42c38bfcf383e932eb3e9d6) | of-dma.c (ec5b103ecfde929004b691f29183255aeeadecd5) |
---|---|
1/* 2 * Device tree helpers for DMA request / controller 3 * 4 * Based on of_gpio.c 5 * 6 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 7 * 8 * This program is free software; you can redistribute it and/or modify --- 146 unchanged lines hidden (view full) --- 155 156 if (!np || !name) { 157 pr_err("%s: not enough information provided\n", __func__); 158 return NULL; 159 } 160 161 count = of_property_count_strings(np, "dma-names"); 162 if (count < 0) { | 1/* 2 * Device tree helpers for DMA request / controller 3 * 4 * Based on of_gpio.c 5 * 6 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 7 * 8 * This program is free software; you can redistribute it and/or modify --- 146 unchanged lines hidden (view full) --- 155 156 if (!np || !name) { 157 pr_err("%s: not enough information provided\n", __func__); 158 return NULL; 159 } 160 161 count = of_property_count_strings(np, "dma-names"); 162 if (count < 0) { |
163 pr_err("%s: dma-names property missing or empty\n", __func__); | 163 pr_err("%s: dma-names property of node '%s' missing or empty\n", 164 __func__, np->full_name); |
164 return NULL; 165 } 166 167 for (i = 0; i < count; i++) { 168 if (of_dma_match_channel(np, name, i, &dma_spec)) 169 continue; 170 171 mutex_lock(&of_dma_lock); --- 45 unchanged lines hidden --- | 165 return NULL; 166 } 167 168 for (i = 0; i < count; i++) { 169 if (of_dma_match_channel(np, name, i, &dma_spec)) 170 continue; 171 172 mutex_lock(&of_dma_lock); --- 45 unchanged lines hidden --- |