summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-05 17:43:12 +0000
committerimp <imp@FreeBSD.org>2009-02-05 17:43:12 +0000
commit62489ed61cdf1586309c9fb863f57466d79da298 (patch)
tree00555283ed28fa977561a04370b2379111a6bc4a /sys/opencrypto
parent3a498bb80367565e80a9c8181d8e8ca4ce0b5db0 (diff)
downloadFreeBSD-src-62489ed61cdf1586309c9fb863f57466d79da298.zip
FreeBSD-src-62489ed61cdf1586309c9fb863f57466d79da298.tar.gz
Fix return type for detach routine (should be int)
Fix first parameter for identify routine (should be driver_t *)
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/cryptosoft.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c
index 6067465..2769be6 100644
--- a/sys/opencrypto/cryptosoft.c
+++ b/sys/opencrypto/cryptosoft.c
@@ -986,7 +986,7 @@ done:
}
static void
-swcr_identify(device_t *dev, device_t parent)
+swcr_identify(driver_t *drv, device_t parent)
{
/* NB: order 10 is so we get attached after h/w devices */
if (device_find_child(parent, "cryptosoft", -1) == NULL &&
@@ -1040,12 +1040,13 @@ swcr_attach(device_t dev)
return 0;
}
-static void
+static int
swcr_detach(device_t dev)
{
crypto_unregister_all(swcr_id);
if (swcr_sessions != NULL)
free(swcr_sessions, M_CRYPTO_DATA);
+ return 0;
}
static device_method_t swcr_methods[] = {
OpenPOWER on IntegriCloud