aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTobias Oed <tobiasoed@hotmail.com>2006-06-26 03:26:18 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:28 -0400
commitfb4ece268bfebaa9f8084b3aa854b56867935724 (patch)
treef7f92fa7999995fc0fe00a3cb31370f7bf0c5b4f /drivers
parent3d1c1cc962cebaae6a70fd89a0adb29ad10a2a12 (diff)
[PATCH] pdc202xx_old depends on CONFIG_BLK_DEV_IDEDMA
The driver pdc202xx_old requires CONFIG_BLK_DEV_IDEDMA, so it's always defined Signed-off-by: Tobias Oed <tobiasoed@hotmail.com> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/pci/pdc202xx_old.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c
index 4cb15644941..e4d87170b37 100644
--- a/drivers/ide/pci/pdc202xx_old.c
+++ b/drivers/ide/pci/pdc202xx_old.c
@@ -491,12 +491,8 @@ static int pdc202xx_ide_dma_timeout(ide_drive_t *drive)
491 491
492static void pdc202xx_reset_host (ide_hwif_t *hwif) 492static void pdc202xx_reset_host (ide_hwif_t *hwif)
493{ 493{
494#ifdef CONFIG_BLK_DEV_IDEDMA
495// unsigned long high_16 = hwif->dma_base - (8*(hwif->channel)); 494// unsigned long high_16 = hwif->dma_base - (8*(hwif->channel));
496 unsigned long high_16 = hwif->dma_master; 495 unsigned long high_16 = hwif->dma_master;
497#else /* !CONFIG_BLK_DEV_IDEDMA */
498 unsigned long high_16 = pci_resource_start(hwif->pci_dev, 4);
499#endif /* CONFIG_BLK_DEV_IDEDMA */
500 u8 udma_speed_flag = hwif->INB(high_16|0x001f); 496 u8 udma_speed_flag = hwif->INB(high_16|0x001f);
501 497
502 hwif->OUTB((udma_speed_flag | 0x10), (high_16|0x001f)); 498 hwif->OUTB((udma_speed_flag | 0x10), (high_16|0x001f));