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
This commit is contained in:
rpaulo 2010-01-20 14:29:55 +00:00
parent 7213068773
commit 05f13fb70a

View File

@ -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;