diff options
author | Scott Long <scottl@FreeBSD.org> | 2005-08-08 12:16:21 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2005-08-08 12:16:21 +0000 |
commit | 9cf8dd43cf86ba1c9431697c994b710d8d01a370 (patch) | |
tree | c6505d39c57568871fa01d3663298277128abe95 /sys/dev/amr/amr.c | |
parent | 2069c3305de25bb20f6a0ab83ed111991f08fea2 (diff) | |
download | src-9cf8dd43cf86ba1c9431697c994b710d8d01a370.tar.gz src-9cf8dd43cf86ba1c9431697c994b710d8d01a370.zip |
Complete the removal of __FreeBSD_version checks from the amr driver. The
driver had advanced enough over the years that direct sharing of code with
FreeBSD 4.x was in no way possible anymore.
Notes
Notes:
svn path=/head/; revision=148850
Diffstat (limited to 'sys/dev/amr/amr.c')
-rw-r--r-- | sys/dev/amr/amr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index 0f9c4e360c1c..0cf30415f4cb 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -67,7 +67,7 @@ __FBSDID("$FreeBSD$"); #include <sys/malloc.h> #include <sys/kernel.h> -#include <dev/amr/amr_compat.h> +#include <sys/bio.h> #include <sys/bus.h> #include <sys/conf.h> #include <sys/stat.h> @@ -929,7 +929,7 @@ amr_bio_command(struct amr_softc *sc, struct amr_command **acp) ac->ac_bio = bio; ac->ac_data = bio->bio_data; ac->ac_length = bio->bio_bcount; - if (BIO_IS_READ(bio)) { + if (bio->bio_cmd == BIO_READ) { ac->ac_flags |= AMR_CMD_DATAIN; cmd = AMR_CMD_LREAD; } else { |