Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ir Delete unnecessary device-activation hooks.



details:   https://anonhg.NetBSD.org/src/rev/0cbca958874b
branches:  trunk
changeset: 749734:0cbca958874b
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Sun Dec 06 22:40:56 2009 +0000

description:
Delete unnecessary device-activation hooks.

diffstat:

 sys/dev/ir/cir.c     |  23 +++--------------------
 sys/dev/ir/irframe.c |  22 +++-------------------
 2 files changed, 6 insertions(+), 39 deletions(-)

diffs (111 lines):

diff -r bbe85950a37a -r 0cbca958874b sys/dev/ir/cir.c
--- a/sys/dev/ir/cir.c  Sun Dec 06 22:33:44 2009 +0000
+++ b/sys/dev/ir/cir.c  Sun Dec 06 22:40:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cir.c,v 1.25 2009/05/12 14:29:42 cegger Exp $  */
+/*     $NetBSD: cir.c,v 1.26 2009/12/06 22:40:56 dyoung Exp $  */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cir.c,v 1.25 2009/05/12 14:29:42 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cir.c,v 1.26 2009/12/06 22:40:56 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -61,11 +61,10 @@
 
 int cir_match(device_t parent, cfdata_t match, void *aux);
 void cir_attach(device_t parent, device_t self, void *aux);
-int cir_activate(device_t self, enum devact act);
 int cir_detach(device_t self, int flags);
 
 CFATTACH_DECL(cir, sizeof(struct cir_softc),
-    cir_match, cir_attach, cir_detach, cir_activate);
+    cir_match, cir_attach, cir_detach, NULL);
 
 extern struct cfdriver cir_cd;
 
@@ -99,22 +98,6 @@
 }
 
 int
-cir_activate(device_t self, enum devact act)
-{
-       /*struct cir_softc *sc = device_private(self);*/
-
-       switch (act) {
-       case DVACT_ACTIVATE:
-               return (EOPNOTSUPP);
-               break;
-
-       case DVACT_DEACTIVATE:
-               break;
-       }
-       return (0);
-}
-
-int
 cir_detach(device_t self, int flags)
 {
        struct cir_softc *sc = device_private(self);
diff -r bbe85950a37a -r 0cbca958874b sys/dev/ir/irframe.c
--- a/sys/dev/ir/irframe.c      Sun Dec 06 22:33:44 2009 +0000
+++ b/sys/dev/ir/irframe.c      Sun Dec 06 22:40:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irframe.c,v 1.43 2009/01/11 14:21:48 mlelstv Exp $     */
+/*     $NetBSD: irframe.c,v 1.44 2009/12/06 22:40:56 dyoung Exp $      */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irframe.c,v 1.43 2009/01/11 14:21:48 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irframe.c,v 1.44 2009/12/06 22:40:56 dyoung Exp $");
 
 #include "irframe.h"
 
@@ -72,7 +72,6 @@
 };
 
 int irframe_match(device_t parent, cfdata_t match, void *aux);
-int irframe_activate(device_t self, enum devact act);
 
 Static int irf_set_params(struct irframe_softc *sc, struct irda_params *p);
 Static int irf_reset_params(struct irframe_softc *sc);
@@ -83,7 +82,7 @@
 #endif
 
 CFATTACH_DECL_NEW(irframe, sizeof(struct irframe_softc),
-    irframe_match, irframe_attach, irframe_detach, irframe_activate);
+    irframe_match, irframe_attach, irframe_detach, NULL);
 
 extern struct cfdriver irframe_cd;
 
@@ -146,21 +145,6 @@
 }
 
 int
-irframe_activate(device_t self, enum devact act)
-{
-       /*struct irframe_softc *sc = device_private(self);*/
-
-       switch (act) {
-       case DVACT_ACTIVATE:
-               return (EOPNOTSUPP);
-
-       case DVACT_DEACTIVATE:
-               break;
-       }
-       return (0);
-}
-
-int
 irframe_detach(device_t self, int flags)
 {
        /*struct irframe_softc *sc = device_private(self);*/



Home | Main Index | Thread Index | Old Index