aboutsummaryrefslogtreecommitdiff
path: root/sys/opencrypto/cryptosoft.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-02-05 17:43:12 +0000
committerWarner Losh <imp@FreeBSD.org>2009-02-05 17:43:12 +0000
commit3f147ab25163eb6f6f11777db1cf796188ba123f (patch)
tree00555283ed28fa977561a04370b2379111a6bc4a /sys/opencrypto/cryptosoft.c
parent05fa71ba43050f8d2191250b09f65df947e94d8a (diff)
Notes
Diffstat (limited to 'sys/opencrypto/cryptosoft.c')
-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 606746595d1c..2769be6672dc 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[] = {