From 7d501144194e45646a9b40ab87d4313a80408531 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 15 Nov 2011 22:27:54 +0000 Subject: Simplify various parts of the puc(4) attachment code. Tested lightly by krw and myself. --- sys/dev/puc/lpt_puc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/dev/puc/lpt_puc.c') 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); } -- cgit v1.2.3