Commit 5097d470 authored by Russell King's avatar Russell King

[ARM] Correct the usage of __FUNCTION__ to make gcc happy.

parent 2e203506
...@@ -81,9 +81,9 @@ void pxa_free_dma (int dma_ch) ...@@ -81,9 +81,9 @@ void pxa_free_dma (int dma_ch)
unsigned long flags; unsigned long flags;
if (!dma_channels[dma_ch].name) { if (!dma_channels[dma_ch].name) {
printk (KERN_CRIT __FUNCTION__ printk (KERN_CRIT
": trying to free channel %d which is already freed\n", "%s: trying to free channel %d which is already freed\n",
dma_ch); __FUNCTION__, dma_ch);
return; return;
} }
......
...@@ -57,8 +57,9 @@ static int __init badge4_init(void) ...@@ -57,8 +57,9 @@ static int __init badge4_init(void)
ret = badge4_sa1111_init(); ret = badge4_sa1111_init();
if (ret < 0) if (ret < 0)
printk(KERN_ERR __FUNCTION__ printk(KERN_ERR
": SA-1111 initialization failed (%d)\n", ret); "%s: SA-1111 initialization failed (%d)\n",
__FUNCTION__, ret);
/* N.B, according to rmk this is the singular place that GPDR /* N.B, according to rmk this is the singular place that GPDR
should be set */ should be set */
...@@ -132,11 +133,11 @@ void badge4_set_5V(unsigned subsystem, int on) ...@@ -132,11 +133,11 @@ void badge4_set_5V(unsigned subsystem, int on)
/* detect on->off and off->on transitions */ /* detect on->off and off->on transitions */
if ((!old_5V_bitmap) && (badge4_5V_bitmap)) { if ((!old_5V_bitmap) && (badge4_5V_bitmap)) {
/* was off, now on */ /* was off, now on */
printk(KERN_INFO __FUNCTION__ ": enabling 5V supply rail\n"); printk(KERN_INFO "%s: enabling 5V supply rail\n", __FUNCTION__);
GPSR = BADGE4_GPIO_PCMEN5V; GPSR = BADGE4_GPIO_PCMEN5V;
} else if ((old_5V_bitmap) && (!badge4_5V_bitmap)) { } else if ((old_5V_bitmap) && (!badge4_5V_bitmap)) {
/* was on, now off */ /* was on, now off */
printk(KERN_INFO __FUNCTION__ ": disabling 5V supply rail\n"); printk(KERN_INFO "%s: disabling 5V supply rail\n", __FUNCTION__);
GPCR = BADGE4_GPIO_PCMEN5V; GPCR = BADGE4_GPIO_PCMEN5V;
} }
......
...@@ -126,9 +126,9 @@ int sa1100_request_dma (dma_device_t device, const char *device_id, ...@@ -126,9 +126,9 @@ int sa1100_request_dma (dma_device_t device, const char *device_id,
err = request_irq(IRQ_DMA0 + i, dma_irq_handler, SA_INTERRUPT, err = request_irq(IRQ_DMA0 + i, dma_irq_handler, SA_INTERRUPT,
device_id, regs); device_id, regs);
if (err) { if (err) {
printk(KERN_ERR __FUNCTION__ printk(KERN_ERR
"unable to request IRQ %d for %s\n", "%s: unable to request IRQ %d for %s\n",
IRQ_DMA0 + i, device_id); __FUNCTION__, IRQ_DMA0 + i, device_id);
dma->device = 0; dma->device = 0;
return err; return err;
} }
...@@ -164,12 +164,12 @@ void sa1100_free_dma(dma_regs_t *regs) ...@@ -164,12 +164,12 @@ void sa1100_free_dma(dma_regs_t *regs)
if (regs == (dma_regs_t *)&DDAR(i)) if (regs == (dma_regs_t *)&DDAR(i))
break; break;
if (i >= SA1100_DMA_CHANNELS) { if (i >= SA1100_DMA_CHANNELS) {
printk(KERN_ERR __FUNCTION__ ": bad DMA identifier\n"); printk(KERN_ERR "%s: bad DMA identifier\n", __FUNCTION__);
return; return;
} }
if (!dma_chan[i].device) { if (!dma_chan[i].device) {
printk(KERN_ERR __FUNCTION__ "Trying to free free DMA\n"); printk(KERN_ERR "%s: Trying to free free DMA\n", __FUNCTION__);
return; return;
} }
...@@ -215,10 +215,14 @@ void sa1100_free_dma(dma_regs_t *regs) ...@@ -215,10 +215,14 @@ void sa1100_free_dma(dma_regs_t *regs)
int sa1100_start_dma(dma_regs_t *regs, dma_addr_t dma_ptr, u_int size) int sa1100_start_dma(dma_regs_t *regs, dma_addr_t dma_ptr, u_int size)
{ {
long flags; unsigned long flags;
u_long status; u_long status;
int ret; int ret;
if (dma_ptr & 3)
printk(KERN_WARNING "DMA: unaligned start address (0x%08lx)\n",
(unsigned long)dma_ptr);
if (size > MAX_DMA_SIZE) if (size > MAX_DMA_SIZE)
return -EOVERFLOW; return -EOVERFLOW;
...@@ -324,7 +328,7 @@ void sa1100_reset_dma(dma_regs_t *regs) ...@@ -324,7 +328,7 @@ void sa1100_reset_dma(dma_regs_t *regs)
if (regs == (dma_regs_t *)&DDAR(i)) if (regs == (dma_regs_t *)&DDAR(i))
break; break;
if (i >= SA1100_DMA_CHANNELS) { if (i >= SA1100_DMA_CHANNELS) {
printk(KERN_ERR __FUNCTION__ ": bad DMA identifier\n"); printk(KERN_ERR "%s: bad DMA identifier\n", __FUNCTION__);
return; return;
} }
......
...@@ -133,7 +133,8 @@ static void h3100_control_egpio( enum ipaq_egpio_type x, int setp ) ...@@ -133,7 +133,8 @@ static void h3100_control_egpio( enum ipaq_egpio_type x, int setp )
/* /*
if ( x != IPAQ_EGPIO_VPP_ON ) { if ( x != IPAQ_EGPIO_VPP_ON ) {
printk(__FUNCTION__ " : type=%d (%s) gpio=0x%x (0x%x) egpio=0x%x (0x%x) setp=%d\n", printk("%s: type=%d (%s) gpio=0x%x (0x%x) egpio=0x%x (0x%x) setp=%d\n",
__FUNCTION__,
x, egpio_names[x], GPLR, gpio, h3600_egpio, egpio, setp ); x, egpio_names[x], GPLR, gpio, h3600_egpio, egpio, setp );
} }
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment