Module Name:    src
Committed By:   christos
Date:           Thu Jun 18 17:21:55 UTC 2015

Modified Files:
        src/sys/dev: ccd.c

Log Message:
initialized sc_unit (from Riastradh)
XXX: pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/dev/ccd.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/ccd.c
diff -u src/sys/dev/ccd.c:1.162 src/sys/dev/ccd.c:1.163
--- src/sys/dev/ccd.c:1.162	Fri Jan  2 14:42:06 2015
+++ src/sys/dev/ccd.c	Thu Jun 18 13:21:55 2015
@@ -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 @@ ccdcreate(int unit) {
 	}
 	/* 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");

Reply via email to