diff options
Diffstat (limited to 'sys/pc98/cbus/syscons_cbus.c')
-rw-r--r-- | sys/pc98/cbus/syscons_cbus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/cbus/syscons_cbus.c b/sys/pc98/cbus/syscons_cbus.c index 5bca2d0..c30f702 100644 --- a/sys/pc98/cbus/syscons_cbus.c +++ b/sys/pc98/cbus/syscons_cbus.c @@ -1,5 +1,5 @@ /*- - * $Id: $ + * $Id: syscons_pc98.c,v 1.1 1999/06/24 10:51:40 kato Exp $ */ #include "sc.h" @@ -42,7 +42,7 @@ static device_method_t sc_methods[] = { static driver_t sc_driver = { SC_DRIVER_NAME, sc_methods, - 1, /* XXX */ + sizeof(sc_softc_t), }; static sc_softc_t main_softc = { 0, 0, 0, -1, NULL, -1, NULL, }; @@ -88,7 +88,7 @@ sc_softc_t main_softc.unit = unit; return &main_softc; } else { - sc = (sc_softc_t *)devclass_get_softc(sc_devclass, unit); + sc = (sc_softc_t *)device_get_softc(devclass_get_device(sc_devclass, unit)); if (!(sc->flags & SC_INIT_DONE)) { sc->unit = unit; sc->keyboard = -1; @@ -111,7 +111,7 @@ sc_softc_t return sc; units = devclass_get_maxunit(sc_devclass); for (i = 0; i < units; ++i) { - sc = (sc_softc_t *)devclass_get_softc(sc_devclass, i); + sc = (sc_softc_t *)device_get_softc(devclass_get_device(sc_devclass, i)); if (sc == NULL) continue; if (((adp == NULL) || (adp == sc->adp)) |