diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-30 15:54:13 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-30 15:54:13 +0000 |
commit | 2548b78451266f4839217a577fd16eb161bb308c (patch) | |
tree | 046d2a2ab2783c317215c502bcc9412440222051 /sys/dev/pci/ppb.c | |
parent | 40e0fb0dc8243f5cd85e888a927da2ce7828ac77 (diff) |
Make ppb(4) detachable.
Diffstat (limited to 'sys/dev/pci/ppb.c')
-rw-r--r-- | sys/dev/pci/ppb.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/pci/ppb.c b/sys/dev/pci/ppb.c index 863f2600430..209e431aa19 100644 --- a/sys/dev/pci/ppb.c +++ b/sys/dev/pci/ppb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppb.c,v 1.22 2007/11/25 16:42:21 kettenis Exp $ */ +/* $OpenBSD: ppb.c,v 1.23 2007/11/30 15:54:12 kettenis Exp $ */ /* $NetBSD: ppb.c,v 1.16 1997/06/06 23:48:05 thorpej Exp $ */ /* @@ -55,9 +55,10 @@ struct ppb_softc { int ppbmatch(struct device *, void *, void *); void ppbattach(struct device *, struct device *, void *); +int ppbdetach(struct device *self, int flags); struct cfattach ppb_ca = { - sizeof(struct ppb_softc), ppbmatch, ppbattach + sizeof(struct ppb_softc), ppbmatch, ppbattach, ppbdetach }; struct cfdriver ppb_cd = { @@ -180,6 +181,12 @@ ppbattach(struct device *parent, struct device *self, void *aux) } int +ppbdetach(struct device *self, int flags) +{ + return config_detach_children(self, flags); +} + +int ppb_intr(void *arg) { struct ppb_softc *sc = arg; |