diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2001-02-08 21:59:27 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2001-02-08 21:59:27 +0000 |
| commit | 32565eb8c54a965cac8f570c1e86c1b584d0a4c2 (patch) | |
| tree | f4d898aa1d558c5a0e9c8506dd6d57be055ce04e | |
| parent | 4b91c22b124d2759006a45083cddff565f5c464d (diff) | |
Notes
| -rw-r--r-- | sys/dev/ata/ata-all.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 8a507d4f78bc..6e1e864ca180 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -758,18 +758,17 @@ static int ata_pcisub_probe(device_t dev) { struct ata_softc *scp = device_get_softc(dev); - device_t *list; + device_t *children; int count, i; /* find channel number on this controller */ - device_get_children(device_get_parent(dev), &list, &count); + device_get_children(device_get_parent(dev), &children, &count); for (i = 0; i < count; i++) { - if (list[i] == dev) + if (children[i] == dev) scp->channel = i; } - + free(children, M_TEMP); scp->chiptype = pci_get_devid(device_get_parent(dev)); - return ata_probe(dev); } |
