From 7382092841b08bd25406b4e6d22954d8113bae7b Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Sat, 16 Oct 1999 01:47:46 +0000 Subject: [PATCH] Save the drive device_t so that we can print it later. --- sys/dev/amr/amr_disk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/amr/amr_disk.c b/sys/dev/amr/amr_disk.c index 958e5ad81b0..e33b56ac5a2 100644 --- a/sys/dev/amr/amr_disk.c +++ b/sys/dev/amr/amr_disk.c @@ -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),