diff options
Diffstat (limited to 'arch/blackfin/kernel/bfin_dma_5xx.c')
-rw-r--r-- | arch/blackfin/kernel/bfin_dma_5xx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/blackfin/kernel/bfin_dma_5xx.c b/arch/blackfin/kernel/bfin_dma_5xx.c index 924c00286ba..26403d1c9e6 100644 --- a/arch/blackfin/kernel/bfin_dma_5xx.c +++ b/arch/blackfin/kernel/bfin_dma_5xx.c | |||
@@ -91,7 +91,7 @@ late_initcall(proc_dma_init); | |||
91 | */ | 91 | */ |
92 | int request_dma(unsigned int channel, const char *device_id) | 92 | int request_dma(unsigned int channel, const char *device_id) |
93 | { | 93 | { |
94 | pr_debug("request_dma() : BEGIN \n"); | 94 | pr_debug("request_dma() : BEGIN\n"); |
95 | 95 | ||
96 | if (device_id == NULL) | 96 | if (device_id == NULL) |
97 | printk(KERN_WARNING "request_dma(%u): no device_id given\n", channel); | 97 | printk(KERN_WARNING "request_dma(%u): no device_id given\n", channel); |
@@ -107,7 +107,7 @@ int request_dma(unsigned int channel, const char *device_id) | |||
107 | #endif | 107 | #endif |
108 | 108 | ||
109 | if (atomic_cmpxchg(&dma_ch[channel].chan_status, 0, 1)) { | 109 | if (atomic_cmpxchg(&dma_ch[channel].chan_status, 0, 1)) { |
110 | pr_debug("DMA CHANNEL IN USE \n"); | 110 | pr_debug("DMA CHANNEL IN USE\n"); |
111 | return -EBUSY; | 111 | return -EBUSY; |
112 | } | 112 | } |
113 | 113 | ||
@@ -131,7 +131,7 @@ int request_dma(unsigned int channel, const char *device_id) | |||
131 | * you have to request DMA, before doing any operations on | 131 | * you have to request DMA, before doing any operations on |
132 | * descriptor/channel | 132 | * descriptor/channel |
133 | */ | 133 | */ |
134 | pr_debug("request_dma() : END \n"); | 134 | pr_debug("request_dma() : END\n"); |
135 | return 0; | 135 | return 0; |
136 | } | 136 | } |
137 | EXPORT_SYMBOL(request_dma); | 137 | EXPORT_SYMBOL(request_dma); |
@@ -171,7 +171,7 @@ static void clear_dma_buffer(unsigned int channel) | |||
171 | 171 | ||
172 | void free_dma(unsigned int channel) | 172 | void free_dma(unsigned int channel) |
173 | { | 173 | { |
174 | pr_debug("freedma() : BEGIN \n"); | 174 | pr_debug("freedma() : BEGIN\n"); |
175 | BUG_ON(channel >= MAX_DMA_CHANNELS || | 175 | BUG_ON(channel >= MAX_DMA_CHANNELS || |
176 | !atomic_read(&dma_ch[channel].chan_status)); | 176 | !atomic_read(&dma_ch[channel].chan_status)); |
177 | 177 | ||
@@ -185,7 +185,7 @@ void free_dma(unsigned int channel) | |||
185 | /* Clear the DMA Variable in the Channel */ | 185 | /* Clear the DMA Variable in the Channel */ |
186 | atomic_set(&dma_ch[channel].chan_status, 0); | 186 | atomic_set(&dma_ch[channel].chan_status, 0); |
187 | 187 | ||
188 | pr_debug("freedma() : END \n"); | 188 | pr_debug("freedma() : END\n"); |
189 | } | 189 | } |
190 | EXPORT_SYMBOL(free_dma); | 190 | EXPORT_SYMBOL(free_dma); |
191 | 191 | ||