diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-26 16:25:20 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:20 -0400 |
commit | eb63963a55f039f049d0dd1121f91f332af6ecc9 (patch) | |
tree | 42de9fdf101a1e45a60d43253057bc7435aef60d /drivers/ide/pci/sgiioc4.c | |
parent | c4b22f816b8ee316cff06df3880f8341e1251211 (diff) |
ide: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
[bart: fix checkpatch.pl errors in ide-lib.c and ppc/mpc8xx.c while at it]
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/sgiioc4.c')
-rw-r--r-- | drivers/ide/pci/sgiioc4.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/ide/pci/sgiioc4.c b/drivers/ide/pci/sgiioc4.c index e16597ddbd91..ec48decb1744 100644 --- a/drivers/ide/pci/sgiioc4.c +++ b/drivers/ide/pci/sgiioc4.c | |||
@@ -170,10 +170,10 @@ sgiioc4_clearirq(ide_drive_t * drive) | |||
170 | printk(KERN_ERR | 170 | printk(KERN_ERR |
171 | "%s(%s) : PCI Bus Error when doing DMA:" | 171 | "%s(%s) : PCI Bus Error when doing DMA:" |
172 | " status-cmd reg is 0x%x\n", | 172 | " status-cmd reg is 0x%x\n", |
173 | __FUNCTION__, drive->name, pci_stat_cmd_reg); | 173 | __func__, drive->name, pci_stat_cmd_reg); |
174 | printk(KERN_ERR | 174 | printk(KERN_ERR |
175 | "%s(%s) : PCI Error Address is 0x%x%x\n", | 175 | "%s(%s) : PCI Error Address is 0x%x%x\n", |
176 | __FUNCTION__, drive->name, | 176 | __func__, drive->name, |
177 | pci_err_addr_high, pci_err_addr_low); | 177 | pci_err_addr_high, pci_err_addr_low); |
178 | /* Clear the PCI Error indicator */ | 178 | /* Clear the PCI Error indicator */ |
179 | pci_write_config_dword(dev, PCI_COMMAND, 0x00000146); | 179 | pci_write_config_dword(dev, PCI_COMMAND, 0x00000146); |
@@ -232,7 +232,7 @@ sgiioc4_ide_dma_end(ide_drive_t * drive) | |||
232 | printk(KERN_ERR | 232 | printk(KERN_ERR |
233 | "%s(%s): IOC4 DMA STOP bit is still 1 :" | 233 | "%s(%s): IOC4 DMA STOP bit is still 1 :" |
234 | "ioc4_dma_reg 0x%x\n", | 234 | "ioc4_dma_reg 0x%x\n", |
235 | __FUNCTION__, drive->name, ioc4_dma); | 235 | __func__, drive->name, ioc4_dma); |
236 | dma_stat = 1; | 236 | dma_stat = 1; |
237 | } | 237 | } |
238 | 238 | ||
@@ -251,7 +251,7 @@ sgiioc4_ide_dma_end(ide_drive_t * drive) | |||
251 | udelay(1); | 251 | udelay(1); |
252 | } | 252 | } |
253 | if (!valid) { | 253 | if (!valid) { |
254 | printk(KERN_ERR "%s(%s) : DMA incomplete\n", __FUNCTION__, | 254 | printk(KERN_ERR "%s(%s) : DMA incomplete\n", __func__, |
255 | drive->name); | 255 | drive->name); |
256 | dma_stat = 1; | 256 | dma_stat = 1; |
257 | } | 257 | } |
@@ -264,7 +264,7 @@ sgiioc4_ide_dma_end(ide_drive_t * drive) | |||
264 | printk(KERN_ERR | 264 | printk(KERN_ERR |
265 | "%s(%s): WARNING!! byte_count_dev %d " | 265 | "%s(%s): WARNING!! byte_count_dev %d " |
266 | "!= byte_count_mem %d\n", | 266 | "!= byte_count_mem %d\n", |
267 | __FUNCTION__, drive->name, bc_dev, bc_mem); | 267 | __func__, drive->name, bc_dev, bc_mem); |
268 | } | 268 | } |
269 | } | 269 | } |
270 | 270 | ||
@@ -343,7 +343,7 @@ ide_dma_sgiioc4(ide_hwif_t * hwif, unsigned long dma_base) | |||
343 | printk(KERN_ERR | 343 | printk(KERN_ERR |
344 | "%s(%s) -- ERROR, Addresses 0x%p to 0x%p " | 344 | "%s(%s) -- ERROR, Addresses 0x%p to 0x%p " |
345 | "ALREADY in use\n", | 345 | "ALREADY in use\n", |
346 | __FUNCTION__, hwif->name, (void *) dma_base, | 346 | __func__, hwif->name, (void *) dma_base, |
347 | (void *) dma_base + num_ports - 1); | 347 | (void *) dma_base + num_ports - 1); |
348 | return -1; | 348 | return -1; |
349 | } | 349 | } |
@@ -352,7 +352,7 @@ ide_dma_sgiioc4(ide_hwif_t * hwif, unsigned long dma_base) | |||
352 | if (virt_dma_base == NULL) { | 352 | if (virt_dma_base == NULL) { |
353 | printk(KERN_ERR | 353 | printk(KERN_ERR |
354 | "%s(%s) -- ERROR, Unable to map addresses 0x%lx to 0x%lx\n", | 354 | "%s(%s) -- ERROR, Unable to map addresses 0x%lx to 0x%lx\n", |
355 | __FUNCTION__, hwif->name, dma_base, dma_base + num_ports - 1); | 355 | __func__, hwif->name, dma_base, dma_base + num_ports - 1); |
356 | goto dma_remap_failure; | 356 | goto dma_remap_failure; |
357 | } | 357 | } |
358 | hwif->dma_base = (unsigned long) virt_dma_base; | 358 | hwif->dma_base = (unsigned long) virt_dma_base; |
@@ -378,7 +378,7 @@ ide_dma_sgiioc4(ide_hwif_t * hwif, unsigned long dma_base) | |||
378 | hwif->dmatable_cpu, hwif->dmatable_dma); | 378 | hwif->dmatable_cpu, hwif->dmatable_dma); |
379 | printk(KERN_INFO | 379 | printk(KERN_INFO |
380 | "%s() -- Error! Unable to allocate DMA Maps for drive %s\n", | 380 | "%s() -- Error! Unable to allocate DMA Maps for drive %s\n", |
381 | __FUNCTION__, hwif->name); | 381 | __func__, hwif->name); |
382 | printk(KERN_INFO | 382 | printk(KERN_INFO |
383 | "Changing from DMA to PIO mode for Drive %s\n", hwif->name); | 383 | "Changing from DMA to PIO mode for Drive %s\n", hwif->name); |
384 | 384 | ||
@@ -406,14 +406,14 @@ sgiioc4_configure_for_dma(int dma_direction, ide_drive_t * drive) | |||
406 | if (ioc4_dma & IOC4_S_DMA_ACTIVE) { | 406 | if (ioc4_dma & IOC4_S_DMA_ACTIVE) { |
407 | printk(KERN_WARNING | 407 | printk(KERN_WARNING |
408 | "%s(%s):Warning!! DMA from previous transfer was still active\n", | 408 | "%s(%s):Warning!! DMA from previous transfer was still active\n", |
409 | __FUNCTION__, drive->name); | 409 | __func__, drive->name); |
410 | writel(IOC4_S_DMA_STOP, (void __iomem *)ioc4_dma_addr); | 410 | writel(IOC4_S_DMA_STOP, (void __iomem *)ioc4_dma_addr); |
411 | ioc4_dma = sgiioc4_ide_dma_stop(hwif, dma_base); | 411 | ioc4_dma = sgiioc4_ide_dma_stop(hwif, dma_base); |
412 | 412 | ||
413 | if (ioc4_dma & IOC4_S_DMA_STOP) | 413 | if (ioc4_dma & IOC4_S_DMA_STOP) |
414 | printk(KERN_ERR | 414 | printk(KERN_ERR |
415 | "%s(%s) : IOC4 Dma STOP bit is still 1\n", | 415 | "%s(%s) : IOC4 Dma STOP bit is still 1\n", |
416 | __FUNCTION__, drive->name); | 416 | __func__, drive->name); |
417 | } | 417 | } |
418 | 418 | ||
419 | ioc4_dma = readl((void __iomem *)ioc4_dma_addr); | 419 | ioc4_dma = readl((void __iomem *)ioc4_dma_addr); |
@@ -421,14 +421,14 @@ sgiioc4_configure_for_dma(int dma_direction, ide_drive_t * drive) | |||
421 | printk(KERN_WARNING | 421 | printk(KERN_WARNING |
422 | "%s(%s) : Warning!! - DMA Error during Previous" | 422 | "%s(%s) : Warning!! - DMA Error during Previous" |
423 | " transfer | status 0x%x\n", | 423 | " transfer | status 0x%x\n", |
424 | __FUNCTION__, drive->name, ioc4_dma); | 424 | __func__, drive->name, ioc4_dma); |
425 | writel(IOC4_S_DMA_STOP, (void __iomem *)ioc4_dma_addr); | 425 | writel(IOC4_S_DMA_STOP, (void __iomem *)ioc4_dma_addr); |
426 | ioc4_dma = sgiioc4_ide_dma_stop(hwif, dma_base); | 426 | ioc4_dma = sgiioc4_ide_dma_stop(hwif, dma_base); |
427 | 427 | ||
428 | if (ioc4_dma & IOC4_S_DMA_STOP) | 428 | if (ioc4_dma & IOC4_S_DMA_STOP) |
429 | printk(KERN_ERR | 429 | printk(KERN_ERR |
430 | "%s(%s) : IOC4 DMA STOP bit is still 1\n", | 430 | "%s(%s) : IOC4 DMA STOP bit is still 1\n", |
431 | __FUNCTION__, drive->name); | 431 | __func__, drive->name); |
432 | } | 432 | } |
433 | 433 | ||
434 | /* Address of the Scatter Gather List */ | 434 | /* Address of the Scatter Gather List */ |
@@ -618,7 +618,7 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev) | |||
618 | printk(KERN_ERR | 618 | printk(KERN_ERR |
619 | "%s : %s -- ERROR, Addresses " | 619 | "%s : %s -- ERROR, Addresses " |
620 | "0x%p to 0x%p ALREADY in use\n", | 620 | "0x%p to 0x%p ALREADY in use\n", |
621 | __FUNCTION__, hwif->name, (void *) cmd_phys_base, | 621 | __func__, hwif->name, (void *) cmd_phys_base, |
622 | (void *) cmd_phys_base + IOC4_CMD_CTL_BLK_SIZE); | 622 | (void *) cmd_phys_base + IOC4_CMD_CTL_BLK_SIZE); |
623 | return -ENOMEM; | 623 | return -ENOMEM; |
624 | } | 624 | } |