Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vsa Fix misuse of device_private(). sc_dev is ...



details:   https://anonhg.NetBSD.org/src/rev/ea4984199005
branches:  trunk
changeset: 937767:ea4984199005
user:      isaki <isaki%NetBSD.org@localhost>
date:      Wed Aug 26 12:59:28 2020 +0000

description:
Fix misuse of device_private().  sc_dev is device_t.

diffstat:

 sys/arch/vax/vsa/vsaudio.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a06861bb4d44 -r ea4984199005 sys/arch/vax/vsa/vsaudio.c
--- a/sys/arch/vax/vsa/vsaudio.c        Wed Aug 26 10:56:01 2020 +0000
+++ b/sys/arch/vax/vsa/vsaudio.c        Wed Aug 26 12:59:28 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vsaudio.c,v 1.5 2019/05/08 13:40:16 isaki Exp $        */
+/*     $NetBSD: vsaudio.c,v 1.6 2020/08/26 12:59:28 isaki Exp $        */
 /*     $OpenBSD: vsaudio.c,v 1.4 2013/05/15 21:21:11 ratchov Exp $     */
 
 /*
@@ -271,7 +271,7 @@
                return;
        }
        sc->sc_bt = va->va_memt;
-       sc->sc_am7930.sc_dev = device_private(self);
+       sc->sc_am7930.sc_dev = self;
        sc->sc_am7930.sc_glue = &vsaudio_glue;
        mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_HIGH);
        am7930_init(&sc->sc_am7930, AUDIOAMD_POLL_MODE);



Home | Main Index | Thread Index | Old Index