Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Byte access is only used in the midi code.



details:   https://anonhg.NetBSD.org/src/rev/33ec5bc627c4
branches:  trunk
changeset: 331119:33ec5bc627c4
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Aug 01 16:41:58 2014 +0000

description:
Byte access is only used in the midi code.

diffstat:

 sys/dev/pci/autri.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 164a7af1b10f -r 33ec5bc627c4 sys/dev/pci/autri.c
--- a/sys/dev/pci/autri.c       Fri Aug 01 14:08:47 2014 +0000
+++ b/sys/dev/pci/autri.c       Fri Aug 01 16:41:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autri.c,v 1.51 2014/03/29 19:28:24 christos Exp $      */
+/*     $NetBSD: autri.c,v 1.52 2014/08/01 16:41:58 joerg Exp $ */
 
 /*
  * Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autri.c,v 1.51 2014/03/29 19:28:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autri.c,v 1.52 2014/08/01 16:41:58 joerg Exp $");
 
 #include "midi.h"
 
@@ -206,6 +206,7 @@
 /*
  * register set/clear bit
  */
+#if NMIDI > 0
 static inline void
 autri_reg_set_1(struct autri_softc *sc, int no, uint8_t mask)
 {
@@ -219,6 +220,7 @@
        bus_space_write_1(sc->memt, sc->memh, no,
            (bus_space_read_1(sc->memt, sc->memh, no) & ~mask));
 }
+#endif
 
 static inline void
 autri_reg_set_4(struct autri_softc *sc, int no, uint32_t mask)



Home | Main Index | Thread Index | Old Index