diff options
| author | thorpej <thorpej@NetBSD.org> | 2006-03-29 06:28:38 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2006-03-29 06:28:38 +0000 |
| commit | 92c7bba3dffd4533c3852cefae11918b9bd84d1e (patch) | |
| tree | a89895b07d7de989d5083923cea8849ffffc3f77 /sys/dev/ebus | |
| parent | a48de83500bb5d6dd2b759ee68753cd4f6149116 (diff) | |
Use device_private().
Diffstat (limited to 'sys/dev/ebus')
| -rw-r--r-- | sys/dev/ebus/cs4231_ebus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ebus/cs4231_ebus.c b/sys/dev/ebus/cs4231_ebus.c index 4b559b36116..47c68e7bcfa 100644 --- a/sys/dev/ebus/cs4231_ebus.c +++ b/sys/dev/ebus/cs4231_ebus.c @@ -1,4 +1,4 @@ -/* $NetBSD: cs4231_ebus.c,v 1.19 2005/12/11 12:21:20 christos Exp $ */ +/* $NetBSD: cs4231_ebus.c,v 1.20 2006/03/29 06:29:20 thorpej Exp $ */ /* * Copyright (c) 2002 Valeriy E. Ushakov @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cs4231_ebus.c,v 1.19 2005/12/11 12:21:20 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cs4231_ebus.c,v 1.20 2006/03/29 06:29:20 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -157,7 +157,7 @@ cs4231_ebus_attach(struct device *parent, struct device *self, void *aux) bus_space_handle_t bh; int i; - ebsc = (struct cs4231_ebus_softc *)self; + ebsc = device_private(self); sc = &ebsc->sc_cs4231; ea = aux; sc->sc_bustag = ebsc->sc_bt = ea->ea_bustag; |
