diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-21 15:13:26 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-21 15:13:26 +0000 |
commit | b82ff758542333406c15ae101ee37865654f2270 (patch) | |
tree | 370edd6c82f8299ccece035af1b2441f573823c0 /sys/dev/amr/amr_disk.c | |
parent | e85983352970f10d4ee3e1c8db3df53c3e2da6a0 (diff) | |
download | src-b82ff758542333406c15ae101ee37865654f2270.tar.gz src-b82ff758542333406c15ae101ee37865654f2270.zip |
NO_GEOM cleanup:
Change the argument to disk_destroy() to be the same struct disk * as
disk_create() takes.
This enables drivers to ignore the (now) bogus dev_t which disk_create()
returns.
Notes
Notes:
svn path=/head/; revision=111216
Diffstat (limited to 'sys/dev/amr/amr_disk.c')
-rw-r--r-- | sys/dev/amr/amr_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/amr/amr_disk.c b/sys/dev/amr/amr_disk.c index 1aa1fc68536d..af489b5fb075 100644 --- a/sys/dev/amr/amr_disk.c +++ b/sys/dev/amr/amr_disk.c @@ -300,7 +300,7 @@ amrd_detach(device_t dev) if (--disks_registered == 0) cdevsw_remove(&amrddisk_cdevsw); #else - disk_destroy(sc->amrd_dev_t); + disk_destroy(&sc->amrd_disk); #endif return(0); } |