diff options
Diffstat (limited to 'arch/arm/plat-omap/mcbsp.c')
-rw-r--r-- | arch/arm/plat-omap/mcbsp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c index e664b912d7bb..2cc1cc328bac 100644 --- a/arch/arm/plat-omap/mcbsp.c +++ b/arch/arm/plat-omap/mcbsp.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <linux/delay.h> | 24 | #include <linux/delay.h> |
25 | #include <linux/io.h> | 25 | #include <linux/io.h> |
26 | 26 | ||
27 | #include <mach/dma.h> | 27 | #include <plat/dma.h> |
28 | #include <mach/mcbsp.h> | 28 | #include <plat/mcbsp.h> |
29 | 29 | ||
30 | struct omap_mcbsp **mcbsp_ptr; | 30 | struct omap_mcbsp **mcbsp_ptr; |
31 | int omap_mcbsp_count; | 31 | int omap_mcbsp_count; |
@@ -298,9 +298,7 @@ int omap_mcbsp_get_dma_op_mode(unsigned int id) | |||
298 | } | 298 | } |
299 | mcbsp = id_to_mcbsp_ptr(id); | 299 | mcbsp = id_to_mcbsp_ptr(id); |
300 | 300 | ||
301 | spin_lock_irq(&mcbsp->lock); | ||
302 | dma_op_mode = mcbsp->dma_op_mode; | 301 | dma_op_mode = mcbsp->dma_op_mode; |
303 | spin_unlock_irq(&mcbsp->lock); | ||
304 | 302 | ||
305 | return dma_op_mode; | 303 | return dma_op_mode; |
306 | } | 304 | } |
@@ -318,7 +316,6 @@ static inline void omap34xx_mcbsp_request(struct omap_mcbsp *mcbsp) | |||
318 | syscon = OMAP_MCBSP_READ(mcbsp->io_base, SYSCON); | 316 | syscon = OMAP_MCBSP_READ(mcbsp->io_base, SYSCON); |
319 | syscon &= ~(ENAWAKEUP | SIDLEMODE(0x03) | CLOCKACTIVITY(0x03)); | 317 | syscon &= ~(ENAWAKEUP | SIDLEMODE(0x03) | CLOCKACTIVITY(0x03)); |
320 | 318 | ||
321 | spin_lock_irq(&mcbsp->lock); | ||
322 | if (mcbsp->dma_op_mode == MCBSP_DMA_MODE_THRESHOLD) { | 319 | if (mcbsp->dma_op_mode == MCBSP_DMA_MODE_THRESHOLD) { |
323 | syscon |= (ENAWAKEUP | SIDLEMODE(0x02) | | 320 | syscon |= (ENAWAKEUP | SIDLEMODE(0x02) | |
324 | CLOCKACTIVITY(0x02)); | 321 | CLOCKACTIVITY(0x02)); |
@@ -327,7 +324,6 @@ static inline void omap34xx_mcbsp_request(struct omap_mcbsp *mcbsp) | |||
327 | } else { | 324 | } else { |
328 | syscon |= SIDLEMODE(0x01); | 325 | syscon |= SIDLEMODE(0x01); |
329 | } | 326 | } |
330 | spin_unlock_irq(&mcbsp->lock); | ||
331 | 327 | ||
332 | OMAP_MCBSP_WRITE(mcbsp->io_base, SYSCON, syscon); | 328 | OMAP_MCBSP_WRITE(mcbsp->io_base, SYSCON, syscon); |
333 | } | 329 | } |
@@ -1145,9 +1141,7 @@ static ssize_t dma_op_mode_show(struct device *dev, | |||
1145 | ssize_t len = 0; | 1141 | ssize_t len = 0; |
1146 | const char * const *s; | 1142 | const char * const *s; |
1147 | 1143 | ||
1148 | spin_lock_irq(&mcbsp->lock); | ||
1149 | dma_op_mode = mcbsp->dma_op_mode; | 1144 | dma_op_mode = mcbsp->dma_op_mode; |
1150 | spin_unlock_irq(&mcbsp->lock); | ||
1151 | 1145 | ||
1152 | for (s = &dma_op_modes[i]; i < ARRAY_SIZE(dma_op_modes); s++, i++) { | 1146 | for (s = &dma_op_modes[i]; i < ARRAY_SIZE(dma_op_modes); s++, i++) { |
1153 | if (dma_op_mode == i) | 1147 | if (dma_op_mode == i) |