ath9k_htc: Update to upstream's commit d19607454d656cb14d8c16dfbf161eebb542e8fe dated...
[linux-libre-firmware.git] / ath9k_htc / target_firmware / magpie_fw_dev / target / adf / adf_os_dma.c
index 915e8e0b3eefd5f40cbc9fe6af3215bee0c4c952..c29f8e45f7f32e48673e412782ff98551e52f1fe 100755 (executable)
@@ -45,7 +45,7 @@ void __adf_os_dma_load(void *arg, bus_dma_segment_t *dseg, int nseg, int error)
        adf_os_assert(nseg == 1);
 
        ((bus_dma_segment_t *)arg)[0].ds_addr = dseg[0].ds_addr;
-       ((bus_dma_segment_t *)arg)[0].ds_len  = dseg[0].ds_len; 
+       ((bus_dma_segment_t *)arg)[0].ds_len  = dseg[0].ds_len;
 }
 #endif
 
@@ -53,29 +53,29 @@ void __adf_os_dma_load(void *arg, bus_dma_segment_t *dseg, int nseg, int error)
  * @brief Allocates a DMA region, uses the tag elem to store the
  *        tag value which constant for all the mappings done
  *        through this API.
- * 
+ *
  * @param osdev
  * @param size
  * @param coherent
  * @param dmap
- * 
+ *
  * @return void* (Virtual address)
  */
 inline void*
-__adf_os_dmamem_alloc(__adf_os_device_t osdev, adf_os_size_t size, 
+__adf_os_dmamem_alloc(__adf_os_device_t osdev, adf_os_size_t size,
                       a_bool_t coherent, __adf_os_dma_map_t *dmap)
-{    
+{
     (*dmap) = A_ALLOCRAM(sizeof(struct __adf_dma_map));
-    
+
        if((*dmap) == NULL){
                goto fail_malloc;
        }
-           
+
     (*dmap)->ds_addr = A_ALLOCRAM(size);
     (*dmap)->ds_len = size;
-    
+
     return (*dmap)->ds_addr;
-    
-fail_malloc: 
-    return NULL;            
+
+fail_malloc:
+    return NULL;
 }