summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/pci/lca.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/alpha/pci/lca.c')
-rw-r--r--sys/arch/alpha/pci/lca.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/alpha/pci/lca.c b/sys/arch/alpha/pci/lca.c
index a90c5f92007..3ec9a253179 100644
--- a/sys/arch/alpha/pci/lca.c
+++ b/sys/arch/alpha/pci/lca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lca.c,v 1.17 2006/03/13 20:10:49 brad Exp $ */
+/* $OpenBSD: lca.c,v 1.18 2006/03/16 22:32:44 miod Exp $ */
/* $NetBSD: lca.c,v 1.14 1996/12/05 01:39:35 cgd Exp $ */
/*-
@@ -96,7 +96,7 @@ int lcamatch(struct device *, void *, void *);
void lcaattach(struct device *, struct device *, void *);
struct cfattach lca_ca = {
- sizeof(struct lca_softc), lcamatch, lcaattach,
+ sizeof(struct device), lcamatch, lcaattach,
};
struct cfdriver lca_cd = {
@@ -207,7 +207,6 @@ lcaattach(parent, self, aux)
struct device *parent, *self;
void *aux;
{
- struct lca_softc *sc = (struct lca_softc *)self;
struct lca_config *lcp;
struct pcibus_attach_args pba;
@@ -220,7 +219,7 @@ lcaattach(parent, self, aux)
* (maybe), but we must do it twice to take care of things
* that need to use memory allocation.
*/
- lcp = sc->sc_lcp = &lca_configuration;
+ lcp = &lca_configuration;
lca_init(lcp, 1);
/* XXX print chipset information */