summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/pci/kauaiata.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/macppc/pci/kauaiata.c b/sys/arch/macppc/pci/kauaiata.c
index 31b54e00218..c09160f82ff 100644
--- a/sys/arch/macppc/pci/kauaiata.c
+++ b/sys/arch/macppc/pci/kauaiata.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kauaiata.c,v 1.8 2007/02/05 06:46:56 drahn Exp $ */
+/* $OpenBSD: kauaiata.c,v 1.9 2007/03/01 21:28:56 drahn Exp $ */
/*
* Copyright (c) 2003 Dale Rahn
@@ -108,6 +108,11 @@ kauaiataattach(struct device *parent, struct device *self, void *aux)
if (node == -1)
node = OF_finddevice("/pci@f4000000/ata-6");
+ if (node == -1) {
+ printf("\n");
+ return;
+ }
+
/*
* XXX - need to compare node and PCI id to verify this is the
* correct device.