Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ppbus Make this actually build, as part of the sgimi...



details:   https://anonhg.NetBSD.org/src/rev/e71fcc43dc47
branches:  trunk
changeset: 748947:e71fcc43dc47
user:      he <he%NetBSD.org@localhost>
date:      Wed Nov 11 15:34:37 2009 +0000

description:
Make this actually build, as part of the sgimips GENERIC32_IP2x kernel.

diffstat:

 sys/dev/ppbus/ppbus_conf.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r a073bd562513 -r e71fcc43dc47 sys/dev/ppbus/ppbus_conf.c
--- a/sys/dev/ppbus/ppbus_conf.c        Wed Nov 11 14:54:40 2009 +0000
+++ b/sys/dev/ppbus/ppbus_conf.c        Wed Nov 11 15:34:37 2009 +0000
@@ -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. */



Home | Main Index | Thread Index | Old Index