diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2007-03-01 21:28:57 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2007-03-01 21:28:57 +0000 |
commit | dc9495d8a66e040101baf23b0c7b478ae9daf531 (patch) | |
tree | b720200e9e34efafb0e631760de8d33a8e777380 /sys/arch | |
parent | 77e22ec2d6b7b85248261f7cce9c57a3af0c10ca (diff) |
If the kauai is not found in openfirmware, abort the config. ok deraadt
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/pci/kauaiata.c | 7 |
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. |