summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1994-03-10 22:30:06 +0000
committermycroft <mycroft@NetBSD.org>1994-03-10 22:30:06 +0000
commit99dbc0692dad3700fd3953f643f167839484a8ce (patch)
tree5d25b537cd181aeb8c378bdeae9e356654f801ff /sys/dev/ata
parent0d7f067f06a5c1c0629e23f78ce057d744ead18c (diff)
Add a heuristic for detecting old config(8)s. This is very temporary.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/wd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index 86dc26ad690..84e5211aaa4 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
- * $Id: wd.c,v 1.67 1994/03/10 21:52:10 mycroft Exp $
+ * $Id: wd.c,v 1.68 1994/03/10 22:30:09 mycroft Exp $
*/
#define INSTRUMENT /* instrumentation stuff by Brad Parker */
@@ -230,6 +230,16 @@ int
wdcattach(dev)
struct isa_device *dev;
{
+
+ /* XXXX */
+ if (dev->id_iobase == 0) {
+ static int warned;
+ if (!warned) {
+ warned = 1;
+ printf("PLEASE UPDATE YOUR COPY OF CONFIG(8)!\n");
+ }
+ return wdattach(dev);
+ }
}
int