Save the drive device_t so that we can print it later.

This commit is contained in:
Mike Smith 1999-10-16 01:47:46 +00:00
parent f01f2af67a
commit 7382092841

View File

@ -265,6 +265,7 @@ amrd_attach(device_t dev)
sc->amrd_controller = (struct amr_softc *)device_get_softc(parent);
sc->amrd_unit = device_get_unit(dev);
sc->amrd_drive = device_get_ivars(dev);
sc->amrd_dev = dev;
device_printf(dev, "%uMB (%u sectors), state 0x%x properties 0x%x\n",
sc->amrd_drive->al_size / ((1024 * 1024) / AMR_BLKSIZE),