summaryrefslogtreecommitdiff
path: root/sys/dev/puc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-12-04 21:49:36 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-12-04 21:49:36 +0000
commita0a521cc6fec5a389d3004997e1a5b83fbe34712 (patch)
treeadbd14579cc4417ea01843476248223aefbb1220 /sys/dev/puc
parent242764d4be86ea0343ed93cc46d8996522a0ddbc (diff)
Make puc(4) detachable.
Tested by millert@
Diffstat (limited to 'sys/dev/puc')
-rw-r--r--sys/dev/puc/com_puc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/puc/com_puc.c b/sys/dev/puc/com_puc.c
index 93e66249a10..6c1db9e3b5e 100644
--- a/sys/dev/puc/com_puc.c
+++ b/sys/dev/puc/com_puc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_puc.c,v 1.14 2006/11/05 17:18:14 martin Exp $ */
+/* $OpenBSD: com_puc.c,v 1.15 2007/12/04 21:49:35 kettenis Exp $ */
/*
* Copyright (c) 1997 - 1999, Jason Downs. All rights reserved.
@@ -133,13 +133,5 @@ com_puc_attach(parent, self, aux)
int
com_puc_detach(struct device *self, int flags)
{
- /* struct com_softc *sc = (void *)self; */
- int error;
-
- if ((error = com_detach(self, flags)) != 0)
- return (error);
-
- /* cardbus_intr_disestablish(psc->sc_cc, psc->sc_cf, csc->cc_ih); */
-
- return (0);
+ return com_detach(self, flags);
}