Module Name: src
Committed By: dyoung
Date: Thu Jan 21 02:19:55 UTC 2010
Modified Files:
src/sys/dev: radio.c
Log Message:
All that the activation hook radioactivate() did was to change
sc_dying, and nothing in the driver examines sc_dying, so get rid of
radioactivate() and sc_dying.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/radio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/radio.c
diff -u src/sys/dev/radio.c:1.23 src/sys/dev/radio.c:1.24
--- src/sys/dev/radio.c:1.23 Sun Dec 6 22:42:48 2009
+++ src/sys/dev/radio.c Thu Jan 21 02:19:55 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: radio.c,v 1.23 2009/12/06 22:42:48 dyoung Exp $ */
+/* $NetBSD: radio.c,v 1.24 2010/01/21 02:19:55 dyoung Exp $ */
/* $OpenBSD: radio.c,v 1.2 2001/12/05 10:27:06 mickey Exp $ */
/* $RuOBSD: radio.c,v 1.7 2001/12/04 06:03:05 tm Exp $ */
@@ -30,7 +30,7 @@
/* This is the /dev/radio driver from OpenBSD */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radio.c,v 1.23 2009/12/06 22:42:48 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radio.c,v 1.24 2010/01/21 02:19:55 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -48,17 +48,15 @@
void *hw_hdl; /* hardware driver handle */
device_t sc_dev; /* hardware device struct */
const struct radio_hw_if *hw_if; /* hardware interface */
- char sc_dying; /* device detached */
};
static int radioprobe(device_t, cfdata_t, void *);
static void radioattach(device_t, device_t, void *);
static int radioprint(void *, const char *);
static int radiodetach(device_t, int);
-static int radioactivate(device_t, enum devact);
CFATTACH_DECL_NEW(radio, sizeof(struct radio_softc),
- radioprobe, radioattach, radiodetach, radioactivate);
+ radioprobe, radioattach, radiodetach, NULL);
static dev_type_open(radioopen);
static dev_type_close(radioclose);
@@ -195,17 +193,3 @@
return (0);
}
-
-static int
-radioactivate(device_t self, enum devact act)
-{
- struct radio_softc *sc = device_private(self);
-
- switch (act) {
- case DVACT_DEACTIVATE:
- sc->sc_dying = 1;
- return 0;
- default:
- return EOPNOTSUPP;
- }
-}