diff options
author | phk <phk@FreeBSD.org> | 2003-02-21 15:13:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-21 15:13:26 +0000 |
commit | 9aa946589d32570b5f9072729164e74111ace98a (patch) | |
tree | 370edd6c82f8299ccece035af1b2441f573823c0 /sys/dev/ata/ata-disk.c | |
parent | f89cdf42be1cbebd7495978fab9d07fe870b2866 (diff) | |
download | FreeBSD-src-9aa946589d32570b5f9072729164e74111ace98a.zip FreeBSD-src-9aa946589d32570b5f9072729164e74111ace98a.tar.gz |
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.
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r-- | sys/dev/ata/ata-disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 450011a..6478171 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -255,7 +255,7 @@ ad_detach(struct ata_device *atadev, int flush) /* get rid of flush XXX SOS */ bioq_remove(&adp->queue, bp); biofinish(bp, NULL, ENXIO); } - disk_destroy(adp->dev); + disk_destroy(&adp->disk); devstat_remove_entry(&adp->stats); if (flush) { if (ata_command(atadev, ATA_C_FLUSHCACHE, 0, 0, 0, ATA_WAIT_READY)) |