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:
parent
9bcc2ba1e1
commit
4135f5cf7d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user