Source-Changes-HG archive

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

[src/trunk]: src/sys/dev initialized sc_unit (from Riastradh)



details:   https://anonhg.NetBSD.org/src/rev/8c5e4bc08498
branches:  trunk
changeset: 338943:8c5e4bc08498
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 18 17:21:55 2015 +0000

description:
initialized sc_unit (from Riastradh)
XXX: pullup-7

diffstat:

 sys/dev/ccd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b9939c925c35 -r 8c5e4bc08498 sys/dev/ccd.c
--- a/sys/dev/ccd.c     Thu Jun 18 15:51:57 2015 +0000
+++ b/sys/dev/ccd.c     Thu Jun 18 17:21:55 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ccd.c,v 1.162 2015/01/02 19:42:06 christos Exp $       */
+/*     $NetBSD: ccd.c,v 1.163 2015/06/18 17:21:55 christos Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.162 2015/01/02 19:42:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.163 2015/06/18 17:21:55 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -230,6 +230,7 @@
        }
        /* Initialize per-softc structures. */
        snprintf(sc->sc_xname, sizeof(sc->sc_xname), "ccd%d", unit);
+       sc->sc_unit = unit;
        mutex_init(&sc->sc_dvlock, MUTEX_DEFAULT, IPL_NONE);
        sc->sc_iolock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
        cv_init(&sc->sc_stop, "ccdstop");



Home | Main Index | Thread Index | Old Index