From owner-svn-src-head@FreeBSD.ORG Thu Feb 5 17:43:12 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDEF31065692; Thu, 5 Feb 2009 17:43:12 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CC2458FC13; Thu, 5 Feb 2009 17:43:12 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n15HhCvY033131; Thu, 5 Feb 2009 17:43:12 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n15HhCMx033130; Thu, 5 Feb 2009 17:43:12 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200902051743.n15HhCMx033130@svn.freebsd.org> From: Warner Losh Date: Thu, 5 Feb 2009 17:43:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188154 - head/sys/opencrypto X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 17:43:13 -0000 Author: imp Date: Thu Feb 5 17:43:12 2009 New Revision: 188154 URL: http://svn.freebsd.org/changeset/base/188154 Log: Fix return type for detach routine (should be int) Fix first parameter for identify routine (should be driver_t *) Modified: head/sys/opencrypto/cryptosoft.c Modified: head/sys/opencrypto/cryptosoft.c ============================================================================== --- head/sys/opencrypto/cryptosoft.c Thu Feb 5 15:09:42 2009 (r188153) +++ head/sys/opencrypto/cryptosoft.c Thu Feb 5 17:43:12 2009 (r188154) @@ -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[] = {