diff options
author | msmith <msmith@FreeBSD.org> | 1999-10-16 01:46:59 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1999-10-16 01:46:59 +0000 |
commit | 6adeae4800a697fb643ef89410887955d2bfd6f6 (patch) | |
tree | 9ff5b4a3d29123243f4e908b24642732397ee89d /sys/dev/mlx/mlx_disk.c | |
parent | fcdace9ad84e50540274fcb3eb5f8223f1ab9fe9 (diff) | |
download | FreeBSD-src-6adeae4800a697fb643ef89410887955d2bfd6f6.zip FreeBSD-src-6adeae4800a697fb643ef89410887955d2bfd6f6.tar.gz |
Save the drive device_t correctly so we can print it later.
The drive number is 5 bits, not 4, in the read/write command.
Diffstat (limited to 'sys/dev/mlx/mlx_disk.c')
-rw-r--r-- | sys/dev/mlx/mlx_disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mlx/mlx_disk.c b/sys/dev/mlx/mlx_disk.c index 9e2f571..20d0136 100644 --- a/sys/dev/mlx/mlx_disk.c +++ b/sys/dev/mlx/mlx_disk.c @@ -253,6 +253,7 @@ mlxd_attach(device_t dev) sc->mlxd_controller = (struct mlx_softc *)device_get_softc(parent); sc->mlxd_unit = device_get_unit(dev); sc->mlxd_drive = device_get_ivars(dev); + sc->mlxd_dev = dev; switch(sc->mlxd_drive->ms_state) { case MLX_SYSD_ONLINE: |