patch-2.4.0-test6 linux/drivers/net/stnic.c
Next file: linux/drivers/net/wan/Makefile
Previous file: linux/drivers/net/slip.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Aug 9 13:59:04 2000
- Orig file:
v2.4.0-test5/linux/drivers/net/stnic.c
- Orig date:
Thu Jul 27 17:38:00 2000
diff -u --recursive --new-file v2.4.0-test5/linux/drivers/net/stnic.c linux/drivers/net/stnic.c
@@ -20,6 +20,7 @@
#include <asm/system.h>
#include <asm/io.h>
#include <asm/hitachi_se.h>
+#include <asm/machvec.h>
#include "8390.h"
@@ -99,6 +100,10 @@
tmp.base_addr = 0x1000;
dev = &tmp;
+
+ /* If we are not running on a SolutionEngine, give up now */
+ if (! MACH_SE)
+ return -ENODEV;
if (load_8390_module ("stnic.c"))
return -ENOSYS;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)