Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/iomd back to passing device_t



details:   https://anonhg.NetBSD.org/src/rev/117432f30051
branches:  trunk
changeset: 349529:117432f30051
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 13 20:18:06 2016 +0000

description:
back to passing device_t

diffstat:

 sys/arch/arm/iomd/vidcaudio.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r f33894a8c205 -r 117432f30051 sys/arch/arm/iomd/vidcaudio.c
--- a/sys/arch/arm/iomd/vidcaudio.c     Tue Dec 13 19:03:49 2016 +0000
+++ b/sys/arch/arm/iomd/vidcaudio.c     Tue Dec 13 20:18:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vidcaudio.c,v 1.54 2016/12/09 13:26:47 christos Exp $  */
+/*     $NetBSD: vidcaudio.c,v 1.55 2016/12/13 20:18:06 christos Exp $  */
 
 /*
  * Copyright (c) 1995 Melvin Tang-Richardson
@@ -65,7 +65,7 @@
 
 #include <sys/param.h> /* proc.h */
 
-__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.54 2016/12/09 13:26:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.55 2016/12/13 20:18:06 christos Exp $");
 
 #include <sys/audioio.h>
 #include <sys/conf.h>   /* autoconfig functions */
@@ -270,8 +270,7 @@
 
        beepdev = audio_attach_mi(&vidcaudio_hw_if, sc, self);
 #if NPCKBD > 0
-       int unit = device_unit(beepdev);
-       pckbd_hookup_bell(audiobell, &unit);
+       pckbd_hookup_bell(audiobell, beepdev);
 #endif
 }
 



Home | Main Index | Thread Index | Old Index