diff options
Diffstat (limited to 'sys/alpha/tlsb/kftxx.c')
-rw-r--r-- | sys/alpha/tlsb/kftxx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/alpha/tlsb/kftxx.c b/sys/alpha/tlsb/kftxx.c index 0daf0aaae923..8450c2bf897c 100644 --- a/sys/alpha/tlsb/kftxx.c +++ b/sys/alpha/tlsb/kftxx.c @@ -104,6 +104,7 @@ static driver_t kft_driver = { static int kft_probe(device_t dev) { + device_t child; struct kft_softc *sc = (struct kft_softc *) device_get_softc(dev); struct kft_device* kd; int hoseno; @@ -145,7 +146,8 @@ kft_probe(device_t dev) kd->kd_node = sc->sc_node; kd->kd_dtype = sc->sc_dtype; kd->kd_hosenum = hoseno; - device_add_child(dev, kd->kd_name, -1, kd); + child = device_add_child(dev, kd->kd_name, -1); + device_set_ivars(child, kd); } return 0; |