Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Remove superfluous activation hook.



details:   https://anonhg.NetBSD.org/src/rev/eacb226d7be5
branches:  trunk
changeset: 748984:eacb226d7be5
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Nov 12 19:25:08 2009 +0000

description:
Remove superfluous activation hook.

diffstat:

 sys/dev/ic/aic6360.c |  26 ++------------------------
 1 files changed, 2 insertions(+), 24 deletions(-)

diffs (47 lines):

diff -r a8b9b7d1f5f6 -r eacb226d7be5 sys/dev/ic/aic6360.c
--- a/sys/dev/ic/aic6360.c      Thu Nov 12 19:24:06 2009 +0000
+++ b/sys/dev/ic/aic6360.c      Thu Nov 12 19:25:08 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic6360.c,v 1.97 2009/09/22 12:56:06 tsutsui Exp $     */
+/*     $NetBSD: aic6360.c,v 1.98 2009/11/12 19:25:08 dyoung Exp $      */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Charles M. Hannum.  All rights reserved.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic6360.c,v 1.97 2009/09/22 12:56:06 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic6360.c,v 1.98 2009/11/12 19:25:08 dyoung Exp $");
 
 #include "opt_ddb.h"
 
@@ -297,28 +297,6 @@
 }
 
 int
-aic_activate(device_t self, enum devact act)
-{
-       struct aic_softc *sc = device_private(self);
-       int s, rv = 0;
-
-       s = splhigh();
-       switch (act) {
-       case DVACT_ACTIVATE:
-               rv = EOPNOTSUPP;
-               break;
-
-       case DVACT_DEACTIVATE:
-               if (sc->sc_child != NULL)
-                       rv = config_deactivate(sc->sc_child);
-               break;
-       }
-       splx(s);
-
-       return (rv);
-}
-
-int
 aic_detach(device_t self, int flags)
 {
        struct aic_softc *sc = device_private(self);



Home | Main Index | Thread Index | Old Index