diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-01-20 14:29:55 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-01-20 14:29:55 +0000 |
commit | 05f13fb70af354b0b1806e33d6aef5fb8c587f15 (patch) | |
tree | 66a8ed55925c373629ab0c34be2d19eb4c047b78 /sys/dev/ata/ata_if.m | |
parent | 721306877333c55cac4507fe8802c40a10b82e4f (diff) | |
download | FreeBSD-src-05f13fb70af354b0b1806e33d6aef5fb8c587f15.zip FreeBSD-src-05f13fb70af354b0b1806e33d6aef5fb8c587f15.tar.gz |
Make ata_getrev() an optional method by implementing ata_null_getrev().
This fixes a bogus '???' boot message on Cambria boards with a CompactFlash
card.
Reviewed by: mav
Diffstat (limited to 'sys/dev/ata/ata_if.m')
-rw-r--r-- | sys/dev/ata/ata_if.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ata/ata_if.m b/sys/dev/ata/ata_if.m index a1775ac..4b9fea3 100644 --- a/sys/dev/ata/ata_if.m +++ b/sys/dev/ata/ata_if.m @@ -71,10 +71,17 @@ METHOD int setmode { int mode; } DEFAULT ata_null_setmode; +CODE { + static int ata_null_getrev(device_t dev, int target) + { + return (0); + } +}; + METHOD int getrev { device_t dev; int target; -}; +} DEFAULT ata_null_getrev; METHOD void reset { device_t channel; |