Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Delete dead code: a device-activation hook.
details: https://anonhg.NetBSD.org/src/rev/f4ea8fae00ba
branches: trunk
changeset: 749736:f4ea8fae00ba
user: dyoung <dyoung%NetBSD.org@localhost>
date: Sun Dec 06 22:44:55 2009 +0000
description:
Delete dead code: a device-activation hook.
diffstat:
sys/dev/pci/iavc_pci.c | 27 ++-------------------------
1 files changed, 2 insertions(+), 25 deletions(-)
diffs (46 lines):
diff -r d248c6d7b0a3 -r f4ea8fae00ba sys/dev/pci/iavc_pci.c
--- a/sys/dev/pci/iavc_pci.c Sun Dec 06 22:42:48 2009 +0000
+++ b/sys/dev/pci/iavc_pci.c Sun Dec 06 22:44:55 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iavc_pci.c,v 1.12 2009/11/26 15:17:09 njoly Exp $ */
+/* $NetBSD: iavc_pci.c,v 1.13 2009/12/06 22:44:55 dyoung Exp $ */
/*
* Copyright (c) 2001-2003 Cubical Solutions Ltd.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iavc_pci.c,v 1.12 2009/11/26 15:17:09 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iavc_pci.c,v 1.13 2009/12/06 22:44:55 dyoung Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -349,27 +349,4 @@
return 0;
}
-
-static int
-iavc_pci_activate(device_t self, enum devact act)
-{
- struct iavc_softc *psc = device_private(self);
- int error, s;
-
- error = 0;
-
- s = splnet();
- switch (act) {
- case DVACT_ACTIVATE:
- error = EOPNOTSUPP;
- break;
- case DVACT_DEACTIVATE:
- /* XXX */
- break;
- }
-
- splx(s);
-
- return error;
-}
#endif
Home |
Main Index |
Thread Index |
Old Index