Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Initialize lock.
details: https://anonhg.NetBSD.org/src/rev/24975a443ab8
branches: trunk
changeset: 519232:24975a443ab8
user: augustss <augustss%NetBSD.org@localhost>
date: Thu Dec 13 17:25:37 2001 +0000
description:
Initialize lock.
diffstat:
sys/dev/usb/uirda.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r c0868c090cf8 -r 24975a443ab8 sys/dev/usb/uirda.c
--- a/sys/dev/usb/uirda.c Thu Dec 13 17:15:09 2001 +0000
+++ b/sys/dev/usb/uirda.c Thu Dec 13 17:25:37 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uirda.c,v 1.2 2001/12/13 02:16:21 augustss Exp $ */
+/* $NetBSD: uirda.c,v 1.3 2001/12/13 17:25:37 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uirda.c,v 1.2 2001/12/13 02:16:21 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uirda.c,v 1.3 2001/12/13 17:25:37 augustss Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -348,6 +348,9 @@
usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
USBDEV(sc->sc_dev));
+ lockinit(&sc->sc_wr_buf_lk, PZERO, "iirwrl", 0, 0);
+ lockinit(&sc->sc_rd_buf_lk, PZERO, "uirrdl", 0, 0);
+
ia.ia_type = IR_TYPE_IRFRAME;
ia.ia_methods = &uirda_methods;
ia.ia_handle = sc;
Home |
Main Index |
Thread Index |
Old Index