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 audiobell now only needs the unit.



details:   https://anonhg.NetBSD.org/src/rev/3222b6c99bde
branches:  trunk
changeset: 819534:3222b6c99bde
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 09 13:26:47 2016 +0000

description:
audiobell now only needs the unit.

diffstat:

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

diffs (28 lines):

diff -r 901a2c43ff98 -r 3222b6c99bde sys/arch/arm/iomd/vidcaudio.c
--- a/sys/arch/arm/iomd/vidcaudio.c     Fri Dec 09 13:26:11 2016 +0000
+++ b/sys/arch/arm/iomd/vidcaudio.c     Fri Dec 09 13:26:47 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vidcaudio.c,v 1.53 2014/10/25 10:58:12 skrll Exp $     */
+/*     $NetBSD: vidcaudio.c,v 1.54 2016/12/09 13:26:47 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.53 2014/10/25 10:58:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.54 2016/12/09 13:26:47 christos Exp $");
 
 #include <sys/audioio.h>
 #include <sys/conf.h>   /* autoconfig functions */
@@ -270,7 +270,8 @@
 
        beepdev = audio_attach_mi(&vidcaudio_hw_if, sc, self);
 #if NPCKBD > 0
-       pckbd_hookup_bell(audiobell, beepdev);
+       int unit = device_unit(beepdev);
+       pckbd_hookup_bell(audiobell, &unit);
 #endif
 }
 



Home | Main Index | Thread Index | Old Index