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:
parent
78eff52f56
commit
f14caa383f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user