diff options
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/dma.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-imx/irq.c | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-imx/dma.c b/arch/arm/mach-imx/dma.c index bc6fb02d213b..a59ff2987cb7 100644 --- a/arch/arm/mach-imx/dma.c +++ b/arch/arm/mach-imx/dma.c | |||
@@ -54,7 +54,7 @@ static inline int imx_dma_sg_next(imx_dmach_t dma_ch, unsigned int lastcount) | |||
54 | 54 | ||
55 | if (!imxdma->name) { | 55 | if (!imxdma->name) { |
56 | printk(KERN_CRIT "%s: called for not allocated channel %d\n", | 56 | printk(KERN_CRIT "%s: called for not allocated channel %d\n", |
57 | __FUNCTION__, dma_ch); | 57 | __func__, dma_ch); |
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
@@ -288,7 +288,7 @@ imx_dma_setup_handlers(imx_dmach_t dma_ch, | |||
288 | 288 | ||
289 | if (!imxdma->name) { | 289 | if (!imxdma->name) { |
290 | printk(KERN_CRIT "%s: called for not allocated channel %d\n", | 290 | printk(KERN_CRIT "%s: called for not allocated channel %d\n", |
291 | __FUNCTION__, dma_ch); | 291 | __func__, dma_ch); |
292 | return -ENODEV; | 292 | return -ENODEV; |
293 | } | 293 | } |
294 | 294 | ||
@@ -321,7 +321,7 @@ void imx_dma_enable(imx_dmach_t dma_ch) | |||
321 | 321 | ||
322 | if (!imxdma->name) { | 322 | if (!imxdma->name) { |
323 | printk(KERN_CRIT "%s: called for not allocated channel %d\n", | 323 | printk(KERN_CRIT "%s: called for not allocated channel %d\n", |
324 | __FUNCTION__, dma_ch); | 324 | __func__, dma_ch); |
325 | return; | 325 | return; |
326 | } | 326 | } |
327 | 327 | ||
@@ -365,7 +365,7 @@ int imx_dma_request(imx_dmach_t dma_ch, const char *name) | |||
365 | 365 | ||
366 | if (dma_ch >= IMX_DMA_CHANNELS) { | 366 | if (dma_ch >= IMX_DMA_CHANNELS) { |
367 | printk(KERN_CRIT "%s: called for non-existed channel %d\n", | 367 | printk(KERN_CRIT "%s: called for non-existed channel %d\n", |
368 | __FUNCTION__, dma_ch); | 368 | __func__, dma_ch); |
369 | return -EINVAL; | 369 | return -EINVAL; |
370 | } | 370 | } |
371 | 371 | ||
@@ -396,7 +396,7 @@ void imx_dma_free(imx_dmach_t dma_ch) | |||
396 | if (!imxdma->name) { | 396 | if (!imxdma->name) { |
397 | printk(KERN_CRIT | 397 | printk(KERN_CRIT |
398 | "%s: trying to free channel %d which is already freed\n", | 398 | "%s: trying to free channel %d which is already freed\n", |
399 | __FUNCTION__, dma_ch); | 399 | __func__, dma_ch); |
400 | return; | 400 | return; |
401 | } | 401 | } |
402 | 402 | ||
@@ -456,7 +456,7 @@ imx_dma_request_by_prio(imx_dmach_t * pdma_ch, const char *name, | |||
456 | } | 456 | } |
457 | } | 457 | } |
458 | 458 | ||
459 | printk(KERN_ERR "%s: no free DMA channel found\n", __FUNCTION__); | 459 | printk(KERN_ERR "%s: no free DMA channel found\n", __func__); |
460 | 460 | ||
461 | return -ENODEV; | 461 | return -ENODEV; |
462 | } | 462 | } |
diff --git a/arch/arm/mach-imx/irq.c b/arch/arm/mach-imx/irq.c index a7465db84893..e6695c4e623b 100644 --- a/arch/arm/mach-imx/irq.c +++ b/arch/arm/mach-imx/irq.c | |||
@@ -160,21 +160,21 @@ imx_gpio_irq_type(unsigned int _irq, unsigned int type) | |||
160 | static void | 160 | static void |
161 | imx_gpio_ack_irq(unsigned int irq) | 161 | imx_gpio_ack_irq(unsigned int irq) |
162 | { | 162 | { |
163 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, irq); | 163 | DEBUG_IRQ("%s: irq %d\n", __func__, irq); |
164 | ISR(IRQ_TO_REG(irq)) = 1 << ((irq - IRQ_GPIOA(0)) % 32); | 164 | ISR(IRQ_TO_REG(irq)) = 1 << ((irq - IRQ_GPIOA(0)) % 32); |
165 | } | 165 | } |
166 | 166 | ||
167 | static void | 167 | static void |
168 | imx_gpio_mask_irq(unsigned int irq) | 168 | imx_gpio_mask_irq(unsigned int irq) |
169 | { | 169 | { |
170 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, irq); | 170 | DEBUG_IRQ("%s: irq %d\n", __func__, irq); |
171 | IMR(IRQ_TO_REG(irq)) &= ~( 1 << ((irq - IRQ_GPIOA(0)) % 32)); | 171 | IMR(IRQ_TO_REG(irq)) &= ~( 1 << ((irq - IRQ_GPIOA(0)) % 32)); |
172 | } | 172 | } |
173 | 173 | ||
174 | static void | 174 | static void |
175 | imx_gpio_unmask_irq(unsigned int irq) | 175 | imx_gpio_unmask_irq(unsigned int irq) |
176 | { | 176 | { |
177 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, irq); | 177 | DEBUG_IRQ("%s: irq %d\n", __func__, irq); |
178 | IMR(IRQ_TO_REG(irq)) |= 1 << ((irq - IRQ_GPIOA(0)) % 32); | 178 | IMR(IRQ_TO_REG(irq)) |= 1 << ((irq - IRQ_GPIOA(0)) % 32); |
179 | } | 179 | } |
180 | 180 | ||