patch-2.3.99-pre6 linux/drivers/ide/cy82c693.c
Next file: linux/drivers/ide/dtc2278.c
Previous file: linux/drivers/ide/cmd64x.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Apr 13 22:54:26 2000
- Orig file:
v2.3.99-pre5/linux/drivers/ide/cy82c693.c
- Orig date:
Mon Mar 27 08:08:24 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/ide/cy82c693.c linux/drivers/ide/cy82c693.c
@@ -49,6 +49,7 @@
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/ide.h>
+#include <linux/init.h>
#include <asm/io.h>
@@ -140,9 +141,8 @@
static void compute_clocks (byte pio, pio_clocks_t *p_pclk)
{
int clk1, clk2;
- int bus_speed;
+ int bus_speed = system_bus_clock(); /* get speed of PCI bus */
- bus_speed = ide_system_bus_speed(); /* get speed of PCI bus */
/* we don't check against CY82C693's min and max speed,
* so you can play with the idebus=xx parameter
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)