summaryrefslogtreecommitdiff
path: root/sys/dev/puc/lpt_puc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-11-15 22:27:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-11-15 22:27:54 +0000
commit7d501144194e45646a9b40ab87d4313a80408531 (patch)
treebdc9232e49f14d4782df07f168350888857055ec /sys/dev/puc/lpt_puc.c
parent6c1d993ab3048631209562f45bbd8cbb45b1196e (diff)
Simplify various parts of the puc(4) attachment code. Tested lightly
by krw and myself.
Diffstat (limited to 'sys/dev/puc/lpt_puc.c')
-rw-r--r--sys/dev/puc/lpt_puc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/puc/lpt_puc.c b/sys/dev/puc/lpt_puc.c
index c84f2cd4cb0..f59e8ae944b 100644
--- a/sys/dev/puc/lpt_puc.c
+++ b/sys/dev/puc/lpt_puc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpt_puc.c,v 1.6 2011/10/25 20:02:20 deraadt Exp $ */
+/* $OpenBSD: lpt_puc.c,v 1.7 2011/11/15 22:27:53 deraadt Exp $ */
/* $NetBSD: lpt_puc.c,v 1.1 1998/06/26 18:52:41 cgd Exp $ */
/*
@@ -54,7 +54,7 @@ void lpt_puc_attach(struct device *, struct device *, void *);
int lpt_puc_detach(struct device *, int);
struct cfattach lpt_puc_ca = {
- sizeof(struct lpt_softc), lpt_puc_probe, lpt_puc_attach, lpt_puc_detach
+ sizeof(struct lpt_softc), lpt_puc_probe, lpt_puc_attach, lpt_puc_detach,
};
int
@@ -97,16 +97,11 @@ lpt_puc_attach(parent, self, aux)
}
printf(" %s", intrstr);
- sc->sc_state = 0;
-
lpt_attach_common(sc);
}
int
lpt_puc_detach(struct device *self, int flags)
{
-
- /* cardbus_intr_disestablish(psc->sc_cc, psc->sc_cf, csc->cc_ih); */
-
return (0);
}