diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-03-05 09:13:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-03-05 09:13:45 +0000 |
commit | 3b7f59986535db280d141ab13c5552c16ba624fe (patch) | |
tree | ec11a628435e24aa7cecc2e06f883ec2507f9010 | |
parent | 68ddbde30c62eb09b3526bbee172a0f78f6dc59d (diff) |
add a reminder about the extra attach function
-rw-r--r-- | sys/dev/pci/ahci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index 55922dc02bd..a610761e77d 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.66 2007/03/05 09:12:39 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.67 2007/03/05 09:13:44 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -503,8 +503,10 @@ ahci_attach(struct device *parent, struct device *self, void *aux) panic("ahci attach cant find a device it matched on"); if (ad->ad_attach != NULL) { - if (ad->ad_attach(pa) != 0) + if (ad->ad_attach(pa) != 0) { + /* error should be printed by ad_attach */ return; + } } if (ahci_map_regs(sc, pa) != 0) { |