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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202699

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;