diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-06-11 00:25:08 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-06-21 02:57:45 +0000 |
| commit | b670c9bafc0e31c7609969bf374b2e80bdc00211 (patch) | |
| tree | a43fdc9e5b58d1ab4cddbf535c3855d7a32de4dc /sys/crypto | |
| parent | 220cdd1b394109a5db9e5b402141c746095c4292 (diff) | |
Diffstat (limited to 'sys/crypto')
| -rw-r--r-- | sys/crypto/aesni/aesni.c | 4 | ||||
| -rw-r--r-- | sys/crypto/armv8/armv8_crypto.c | 4 | ||||
| -rw-r--r-- | sys/crypto/blake2/blake2_cryptodev.c | 4 | ||||
| -rw-r--r-- | sys/crypto/openssl/ossl.c | 2 | ||||
| -rw-r--r-- | sys/crypto/via/padlock.c | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c index 6a551577d1b9..be8b234d796c 100644 --- a/sys/crypto/aesni/aesni.c +++ b/sys/crypto/aesni/aesni.c @@ -81,8 +81,8 @@ aesni_identify(driver_t *drv, device_t parent) { /* NB: order 10 is so we get attached after h/w devices */ - if (device_find_child(parent, "aesni", -1) == NULL && - BUS_ADD_CHILD(parent, 10, "aesni", -1) == 0) + if (device_find_child(parent, "aesni", DEVICE_UNIT_ANY) == NULL && + BUS_ADD_CHILD(parent, 10, "aesni", DEVICE_UNIT_ANY) == 0) panic("aesni: could not attach"); } diff --git a/sys/crypto/armv8/armv8_crypto.c b/sys/crypto/armv8/armv8_crypto.c index 0a63d052b7a9..5b7ec4fbe125 100644 --- a/sys/crypto/armv8/armv8_crypto.c +++ b/sys/crypto/armv8/armv8_crypto.c @@ -73,8 +73,8 @@ armv8_crypto_identify(driver_t *drv, device_t parent) { /* NB: order 10 is so we get attached after h/w devices */ - if (device_find_child(parent, "armv8crypto", -1) == NULL && - BUS_ADD_CHILD(parent, 10, "armv8crypto", -1) == 0) + if (device_find_child(parent, "armv8crypto", DEVICE_UNIT_ANY) == NULL && + BUS_ADD_CHILD(parent, 10, "armv8crypto", DEVICE_UNIT_ANY) == 0) panic("ARMv8 crypto: could not attach"); } diff --git a/sys/crypto/blake2/blake2_cryptodev.c b/sys/crypto/blake2/blake2_cryptodev.c index 00211544c42b..702a76a8e57a 100644 --- a/sys/crypto/blake2/blake2_cryptodev.c +++ b/sys/crypto/blake2/blake2_cryptodev.c @@ -61,8 +61,8 @@ blake2_identify(driver_t *drv, device_t parent) { /* NB: order 10 is so we get attached after h/w devices */ - if (device_find_child(parent, "blaketwo", -1) == NULL && - BUS_ADD_CHILD(parent, 10, "blaketwo", -1) == 0) + if (device_find_child(parent, "blaketwo", DEVICE_UNIT_ANY) == NULL && + BUS_ADD_CHILD(parent, 10, "blaketwo", DEVICE_UNIT_ANY) == 0) panic("blaketwo: could not attach"); } diff --git a/sys/crypto/openssl/ossl.c b/sys/crypto/openssl/ossl.c index c2ca28133a78..203091c1e50b 100644 --- a/sys/crypto/openssl/ossl.c +++ b/sys/crypto/openssl/ossl.c @@ -56,7 +56,7 @@ static void ossl_identify(driver_t *driver, device_t parent) { - if (device_find_child(parent, "ossl", -1) == NULL) + if (device_find_child(parent, "ossl", DEVICE_UNIT_ANY) == NULL) BUS_ADD_CHILD(parent, 10, "ossl", DEVICE_UNIT_ANY); } diff --git a/sys/crypto/via/padlock.c b/sys/crypto/via/padlock.c index 359618409f09..1123aa2f0c74 100644 --- a/sys/crypto/via/padlock.c +++ b/sys/crypto/via/padlock.c @@ -71,8 +71,8 @@ static void padlock_identify(driver_t *drv, device_t parent) { /* NB: order 10 is so we get attached after h/w devices */ - if (device_find_child(parent, "padlock", -1) == NULL && - BUS_ADD_CHILD(parent, 10, "padlock", -1) == 0) + if (device_find_child(parent, "padlock", DEVICE_UNIT_ANY) == NULL && + BUS_ADD_CHILD(parent, 10, "padlock", DEVICE_UNIT_ANY) == 0) panic("padlock: could not attach"); } |
