Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Nothing calls config_activate(9) any longer, so delete it.
details: https://anonhg.NetBSD.org/src/rev/d650bcbd8b82
branches: trunk
changeset: 747477:d650bcbd8b82
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Sep 16 22:45:23 2009 +0000
description:
Nothing calls config_activate(9) any longer, so delete it.
diffstat:
sys/kern/subr_autoconf.c | 22 ++--------------------
sys/sys/device.h | 3 +--
2 files changed, 3 insertions(+), 22 deletions(-)
diffs (60 lines):
diff -r 8f8365c219eb -r d650bcbd8b82 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Wed Sep 16 22:44:19 2009 +0000
+++ b/sys/kern/subr_autoconf.c Wed Sep 16 22:45:23 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.183 2009/09/16 16:34:50 dyoung Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.184 2009/09/16 22:45:24 dyoung Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.183 2009/09/16 16:34:50 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.184 2009/09/16 22:45:24 dyoung Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1491,24 +1491,6 @@
}
int
-config_activate(device_t dev)
-{
- const struct cfattach *ca = dev->dv_cfattach;
- int rv = 0, oflags = dev->dv_flags;
-
- if (ca->ca_activate == NULL)
- return EOPNOTSUPP;
-
- if ((dev->dv_flags & DVF_ACTIVE) == 0) {
- dev->dv_flags |= DVF_ACTIVE;
- rv = (*ca->ca_activate)(dev, DVACT_ACTIVATE);
- if (rv)
- dev->dv_flags = oflags;
- }
- return rv;
-}
-
-int
config_deactivate(device_t dev)
{
const struct cfattach *ca = dev->dv_cfattach;
diff -r 8f8365c219eb -r d650bcbd8b82 sys/sys/device.h
--- a/sys/sys/device.h Wed Sep 16 22:44:19 2009 +0000
+++ b/sys/sys/device.h Wed Sep 16 22:45:23 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.122 2009/09/16 16:34:56 dyoung Exp $ */
+/* $NetBSD: device.h,v 1.123 2009/09/16 22:45:23 dyoung Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -457,7 +457,6 @@
int config_detach(device_t, int);
int config_detach_children(device_t, int flags);
bool config_detach_all(int);
-int config_activate(device_t);
int config_deactivate(device_t);
void config_defer(device_t, void (*)(device_t));
void config_deferred(device_t);
Home |
Main Index |
Thread Index |
Old Index