Return the unit number of a channel instead of a hardcoded '1' from

the ATA pccard locking function.  This makes pccard devices like
Compact Flash cards work again.

PR:             kern/72805
Submitted by:   James E. Flemer <jflemer@alum.rpi.edu>
MFC in:         2 days
This commit is contained in:
le 2004-10-19 10:29:00 +00:00
parent 78eff52f56
commit f14caa383f

View File

@ -91,7 +91,7 @@ ata_pccard_match(device_t dev)
static int
ata_pccard_locknoop(struct ata_channel *ch, int type)
{
return 1;
return ch->unit;
}
static void