[PATCH] 2.6.3 - fix for undefined mdelay in 3c505

From: Jakub Bogusz
Date: Wed Feb 25 2004 - 09:12:31 EST


This patch fixes undefined mdelay() in 3c505 driver - at least on alpha
(maybe on other archs <linux/delay.h> is included by some other headers,
but on alpha it isn't) there was warning:

*** Warning: "mdelay" [drivers/net/3c505.ko] undefined!


--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
PLD Team http://www.pld-linux.org/
fixes "*** Warning: "mdelay" [drivers/net/3c505.ko] undefined!"

--- linux-2.6.3/drivers/net/3c505.c.orig 2004-02-18 04:59:55.000000000 +0100
+++ linux-2.6.3/drivers/net/3c505.c 2004-02-25 14:54:15.000000000 +0100
@@ -106,6 +106,7 @@
#include <linux/ioport.h>
#include <linux/spinlock.h>
#include <linux/ethtool.h>
+#include <linux/delay.h>

#include <asm/uaccess.h>
#include <asm/bitops.h>