patch-2.3.4 linux/drivers/block/cmd646.c
Next file: linux/drivers/block/cy82c693.c
Previous file: linux/drivers/block/blkpg.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu May 27 09:55:21 1999
- Orig file:
v2.3.3/linux/drivers/block/cmd646.c
- Orig date:
Mon May 17 09:55:21 1999
diff -u --recursive --new-file v2.3.3/linux/drivers/block/cmd646.c linux/drivers/block/cmd646.c
@@ -1,4 +1,4 @@
-/* $Id: cmd646.c,v 1.12 1999/05/14 07:21:01 davem Exp $
+/* $Id: cmd646.c,v 1.13 1999/05/27 04:49:38 davem Exp $
* cmd646.c: Enable interrupts at initialization time on Ultra/PCI machines.
* Note, this driver is not used at all on other systems because
* there the "BIOS" has done all of the following already.
@@ -275,9 +275,11 @@
(void) pci_write_config_byte(dev, 0x58, 0x3f);
(void) pci_write_config_byte(dev, 0x5b, 0x3f);
- if (class_rev == 0x01) {
- hwif->dmaproc = &cmd646_1_dmaproc;
- } else {
- hwif->dmaproc = &cmd646_dmaproc;
+ if (hwif->dma_base) {
+ if (class_rev == 0x01) {
+ hwif->dmaproc = &cmd646_1_dmaproc;
+ } else {
+ hwif->dmaproc = &cmd646_dmaproc;
+ }
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)