aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amr
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-02-21 15:13:26 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-02-21 15:13:26 +0000
commitb82ff758542333406c15ae101ee37865654f2270 (patch)
tree370edd6c82f8299ccece035af1b2441f573823c0 /sys/dev/amr
parente85983352970f10d4ee3e1c8db3df53c3e2da6a0 (diff)
downloadsrc-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')
-rw-r--r--sys/dev/amr/amr_disk.c2
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);
}