diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2005-04-15 14:19:41 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2005-04-15 14:19:41 +0000 |
| commit | d1719942b304015436e89065cd0cab358379a9f3 (patch) | |
| tree | 3e0253505381a5cf8c87d93b15a316b0da1ba841 /sys/dev/ata | |
| parent | f3050486640d253b0d9f7c77878c03e422f1886e (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata-all.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 6f9dc93605bc5..f17c00db24e1a 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -632,7 +632,7 @@ ata_identify(device_t dev) if (ch->devices & ATA_ATA_SLAVE) { slave_res = ata_getparam(dev, slave, ATA_ATA_IDENTIFY); #ifdef ATA_STATIC_ID - slave_unit = (device_get_unit(parent) << 1) + 1; + slave_unit = (device_get_unit(dev) << 1) + 1; #endif } else if (ch->devices & ATA_ATAPI_SLAVE) @@ -641,7 +641,7 @@ ata_identify(device_t dev) if (ch->devices & ATA_ATA_MASTER) { master_res = ata_getparam(dev, master, ATA_ATA_IDENTIFY); #ifdef ATA_STATIC_ID - master_unit = (device_get_unit(parent) << 1); + master_unit = (device_get_unit(dev) << 1); #endif } else if (ch->devices & ATA_ATAPI_MASTER) |
