summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2003-12-03 13:40:26 +0000
committersos <sos@FreeBSD.org>2003-12-03 13:40:26 +0000
commite57603da9f15ad23d90b15e7ad5464e3b5398310 (patch)
tree84bfeee89743af8e3ed333839acd976745dd6d17 /sys
parente3ca591a9b130b8d9f4f5be29dc12fcdb4da84e9 (diff)
downloadFreeBSD-src-e57603da9f15ad23d90b15e7ad5464e3b5398310.zip
FreeBSD-src-e57603da9f15ad23d90b15e7ad5464e3b5398310.tar.gz
Fix modesetting on ISA only systems.
Approved by: re@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-isa.c b/sys/dev/ata/ata-isa.c
index 9dc409e..f4e9ec8 100644
--- a/sys/dev/ata/ata-isa.c
+++ b/sys/dev/ata/ata-isa.c
@@ -64,7 +64,7 @@ ata_isa_lock(struct ata_channel *ch, int type)
static void
ata_isa_setmode(struct ata_device *atadev, int mode)
{
- atadev->mode = min(mode, ATA_PIO_MAX);
+ atadev->mode = ata_limit_mode(atadev, mode, ATA_PIO_MAX);
}
static int
OpenPOWER on IntegriCloud