patch-2.3.99-pre6 linux/drivers/ide/alim15x3.c
Next file: linux/drivers/ide/amd7409.c
Previous file: linux/drivers/ide/ali14xx.c
Back to the patch index
Back to the overall index
-  Lines: 34
-  Date:
Thu Apr 13 22:54:26 2000
-  Orig file: 
v2.3.99-pre5/linux/drivers/ide/alim15x3.c
-  Orig date: 
Mon Mar 27 08:08:24 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/ide/alim15x3.c linux/drivers/ide/alim15x3.c
@@ -24,6 +24,7 @@
 #include <linux/delay.h>
 #include <linux/hdreg.h>
 #include <linux/ide.h>
+#include <linux/init.h>
 
 #include <asm/io.h>
 
@@ -249,7 +250,7 @@
 	int s_time, a_time, c_time;
 	byte s_clc, a_clc, r_clc;
 	unsigned long flags;
-	int bus_speed = ide_system_bus_speed();
+	int bus_speed = system_bus_clock();
 	int port = hwif->index ? 0x5c : 0x58;
 	int portFIFO = hwif->channel ? 0x55 : 0x54;
 	byte cd_dma_fifo = 0;
@@ -409,14 +410,14 @@
 
 static byte ali15x3_can_ultra (ide_drive_t *drive)
 {
-#ifdef CONFIG_WDC_ALI15X3
+#ifndef CONFIG_WDC_ALI15X3
 	struct hd_driveid *id	= drive->id;
 #endif /* CONFIG_WDC_ALI15X3 */
 
 	if (m5229_revision <= 0x20) {
 		return 0;
 	} else if ((m5229_revision < 0xC2) &&
-#ifdef CONFIG_WDC_ALI15X3
+#ifndef CONFIG_WDC_ALI15X3
 		   ((chip_is_1543c_e && strstr(id->model, "WDC ")) ||
 		    (drive->media!=ide_disk))) {
 #else /* CONFIG_WDC_ALI15X3 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)