Delete unnecessary device-activation hooks.

This commit is contained in:
dyoung 2009-12-06 22:40:56 +00:00
parent 711b27c90c
commit de0ad50405
2 changed files with 6 additions and 39 deletions

View File

@ -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 @@ const struct cdevsw cir_cdevsw = {
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;
@ -98,22 +97,6 @@ cir_attach(device_t parent, device_t self, void *aux)
printf("\n");
}
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)
{

View File

@ -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 @@ const struct cdevsw irframe_cdevsw = {
};
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 @@ CFDRIVER_DECL(irframe, DV_DULL, NULL);
#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;
@ -145,21 +144,6 @@ irframe_attach(device_t parent, device_t self, void *aux)
aprint_error_dev(self, "couldn't establish power handler\n");
}
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)
{