From 05f13fb70af354b0b1806e33d6aef5fb8c587f15 Mon Sep 17 00:00:00 2001 From: rpaulo Date: Wed, 20 Jan 2010 14:29:55 +0000 Subject: [PATCH] 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 --- sys/dev/ata/ata_if.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/dev/ata/ata_if.m b/sys/dev/ata/ata_if.m index a1775ac6ee71..4b9fea37d3f1 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;