Module Name: src
Committed By: he
Date: Wed Nov 11 15:34:37 UTC 2009
Modified Files:
src/sys/dev/ppbus: ppbus_conf.c
Log Message:
Make this actually build, as part of the sgimips GENERIC32_IP2x kernel.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ppbus/ppbus_conf.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/ppbus/ppbus_conf.c
diff -u src/sys/dev/ppbus/ppbus_conf.c:1.17 src/sys/dev/ppbus/ppbus_conf.c:1.18
--- src/sys/dev/ppbus/ppbus_conf.c:1.17 Sat Nov 7 00:05:49 2009
+++ src/sys/dev/ppbus/ppbus_conf.c Wed Nov 11 15:34:37 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ppbus_conf.c,v 1.17 2009/11/07 00:05:49 dyoung Exp $ */
+/* $NetBSD: ppbus_conf.c,v 1.18 2009/11/11 15:34:37 he Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 Nicolas Souchu
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ppbus_conf.c,v 1.17 2009/11/07 00:05:49 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppbus_conf.c,v 1.18 2009/11/11 15:34:37 he Exp $");
#include "opt_ppbus.h"
#include "opt_ppbus_1284.h"
@@ -181,13 +181,16 @@
static void
ppbus_childdet(device_t self, device_t target)
{
+ struct ppbus_softc * ppbus = device_private(self);
+ struct ppbus_device_softc * child;
+
SLIST_FOREACH(child, &ppbus->sc_childlist_head, entries) {
if (child->sc_dev == target)
break;
}
if (child != NULL)
SLIST_REMOVE(&ppbus->sc_childlist_head, child,
- struct ppbus_device_softc, entries);
+ ppbus_device_softc, entries);
}
/* Detach function for ppbus. */