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:
Rui Paulo 2010-01-20 14:29:55 +00:00
parent 9bcc2ba1e1
commit 4135f5cf7d

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;