diff options
| author | Warner Losh <imp@FreeBSD.org> | 2024-07-25 04:22:58 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-07-25 04:22:58 +0000 |
| commit | 5b56413d04e608379c9a306373554a8e4d321bc0 (patch) | |
| tree | c9151d7d1f89e0d4d84120695ab396078fef3ad5 /sys/dev/ahci | |
| parent | 29d13f3d06dec06a2fc9636ca8308c0462f80cfc (diff) | |
Diffstat (limited to 'sys/dev/ahci')
| -rw-r--r-- | sys/dev/ahci/ahci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index 2910247d9327..76d27dbe4953 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -354,7 +354,7 @@ ahci_attach(device_t dev) } /* Attach all channels on this controller */ for (unit = 0; unit < ctlr->channels; unit++) { - child = device_add_child(dev, "ahcich", -1); + child = device_add_child(dev, "ahcich", DEVICE_UNIT_ANY); if (child == NULL) { device_printf(dev, "failed to add channel device\n"); continue; @@ -365,7 +365,7 @@ ahci_attach(device_t dev) } /* Attach any remapped NVME device */ for (; unit < ctlr->channels + ctlr->remapped_devices; unit++) { - child = device_add_child(dev, "nvme", -1); + child = device_add_child(dev, "nvme", DEVICE_UNIT_ANY); if (child == NULL) { device_printf(dev, "failed to add remapped NVMe device"); continue; @@ -377,7 +377,7 @@ ahci_attach(device_t dev) resource_int_value(device_get_name(dev), device_get_unit(dev), "em", &em); if (em) { - child = device_add_child(dev, "ahciem", -1); + child = device_add_child(dev, "ahciem", DEVICE_UNIT_ANY); if (child == NULL) device_printf(dev, "failed to add enclosure device\n"); else |
