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/imcsmb | |
| parent | 29d13f3d06dec06a2fc9636ca8308c0462f80cfc (diff) | |
Diffstat (limited to 'sys/dev/imcsmb')
| -rw-r--r-- | sys/dev/imcsmb/imcsmb.c | 2 | ||||
| -rw-r--r-- | sys/dev/imcsmb/imcsmb_pci.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/imcsmb/imcsmb.c b/sys/dev/imcsmb/imcsmb.c index fe766e1e1893..7708234d2fa2 100644 --- a/sys/dev/imcsmb/imcsmb.c +++ b/sys/dev/imcsmb/imcsmb.c @@ -90,7 +90,7 @@ imcsmb_attach(device_t dev) sc->regs = device_get_ivars(dev); /* Create the smbus child */ - sc->smbus = device_add_child(dev, "smbus", -1); + sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); if (sc->smbus == NULL) { /* Nothing has been allocated, so there's no cleanup. */ device_printf(dev, "Child smbus not added\n"); diff --git a/sys/dev/imcsmb/imcsmb_pci.c b/sys/dev/imcsmb/imcsmb_pci.c index e4dd10d6dd1e..384363481e4c 100644 --- a/sys/dev/imcsmb/imcsmb_pci.c +++ b/sys/dev/imcsmb/imcsmb_pci.c @@ -174,7 +174,7 @@ imcsmb_pci_attach(device_t dev) /* Create the imcsmbX children */ for (unit = 0; unit < 2; unit++) { - child = device_add_child(dev, "imcsmb", -1); + child = device_add_child(dev, "imcsmb", DEVICE_UNIT_ANY); if (child == NULL) { /* Nothing has been allocated, so there's no cleanup. */ device_printf(dev, "Child imcsmb not added\n"); |
