aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:46 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:46 -0400
commitde23ec9ca82357e6d337a2263befb1a65cf19c83 (patch)
tree69bb25051df73e9815696245f613e54e0fc501f3 /drivers/ide/ide-dma.c
parent653bcf5292a9ac4ffc07315198f0ef995e0646a8 (diff)
ide: make ide_dma_lost_irq() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n
Make ide_dma_lost_irq() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n and convert {ics,au1xxx-}ide.c to use it. While at it: - use EXPORT_SYMBOL_GPL() to match the rest of SFF DMA functions Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index f142d8f1349e..08cd878de50b 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -823,14 +823,13 @@ void ide_check_dma_crc(ide_drive_t *drive)
823 ide_dma_on(drive); 823 ide_dma_on(drive);
824} 824}
825 825
826#ifdef CONFIG_BLK_DEV_IDEDMA_SFF 826void ide_dma_lost_irq(ide_drive_t *drive)
827void ide_dma_lost_irq (ide_drive_t *drive)
828{ 827{
829 printk("%s: DMA interrupt recovery\n", drive->name); 828 printk(KERN_ERR "%s: DMA interrupt recovery\n", drive->name);
830} 829}
830EXPORT_SYMBOL_GPL(ide_dma_lost_irq);
831 831
832EXPORT_SYMBOL(ide_dma_lost_irq); 832#ifdef CONFIG_BLK_DEV_IDEDMA_SFF
833
834void ide_dma_timeout (ide_drive_t *drive) 833void ide_dma_timeout (ide_drive_t *drive)
835{ 834{
836 ide_hwif_t *hwif = HWIF(drive); 835 ide_hwif_t *hwif = HWIF(drive);