diff options
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 15f8c6abe429..8d668a80adb3 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -933,6 +933,8 @@ static int ide_dma_iobase(ide_hwif_t *hwif, unsigned long base, unsigned int por | |||
933 | 933 | ||
934 | void ide_setup_dma(ide_hwif_t *hwif, unsigned long base, unsigned num_ports) | 934 | void ide_setup_dma(ide_hwif_t *hwif, unsigned long base, unsigned num_ports) |
935 | { | 935 | { |
936 | u8 dma_stat; | ||
937 | |||
936 | if (ide_dma_iobase(hwif, base, num_ports)) | 938 | if (ide_dma_iobase(hwif, base, num_ports)) |
937 | return; | 939 | return; |
938 | 940 | ||
@@ -971,13 +973,10 @@ void ide_setup_dma(ide_hwif_t *hwif, unsigned long base, unsigned num_ports) | |||
971 | if (!hwif->dma_lost_irq) | 973 | if (!hwif->dma_lost_irq) |
972 | hwif->dma_lost_irq = &ide_dma_lost_irq; | 974 | hwif->dma_lost_irq = &ide_dma_lost_irq; |
973 | 975 | ||
974 | if (hwif->chipset != ide_trm290) { | 976 | dma_stat = hwif->INB(hwif->dma_status); |
975 | u8 dma_stat = hwif->INB(hwif->dma_status); | 977 | printk(KERN_CONT ", BIOS settings: %s:%s, %s:%s\n", |
976 | printk(", BIOS settings: %s:%s, %s:%s", | 978 | hwif->drives[0].name, (dma_stat & 0x20) ? "DMA" : "PIO", |
977 | hwif->drives[0].name, (dma_stat & 0x20) ? "DMA" : "pio", | 979 | hwif->drives[1].name, (dma_stat & 0x40) ? "DMA" : "PIO"); |
978 | hwif->drives[1].name, (dma_stat & 0x40) ? "DMA" : "pio"); | ||
979 | } | ||
980 | printk("\n"); | ||
981 | } | 980 | } |
982 | 981 | ||
983 | EXPORT_SYMBOL_GPL(ide_setup_dma); | 982 | EXPORT_SYMBOL_GPL(ide_setup_dma); |