From 2548b78451266f4839217a577fd16eb161bb308c Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 30 Nov 2007 15:54:13 +0000 Subject: Make ppb(4) detachable. --- sys/dev/pci/ppb.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/ppb.c') 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 = { @@ -179,6 +180,12 @@ ppbattach(struct device *parent, struct device *self, void *aux) sc->sc_psc = config_found(self, &pba, ppbprint); } +int +ppbdetach(struct device *self, int flags) +{ + return config_detach_children(self, flags); +} + int ppb_intr(void *arg) { -- cgit v1.2.3