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 Use device_xname.



details:   https://anonhg.NetBSD.org/src/rev/f126ddda30ef
branches:  trunk
changeset: 781973:f126ddda30ef
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 10 22:00:22 2012 +0000

description:
Use device_xname.

>From chuq.

diffstat:

 sys/arch/arm/iomd/iomd.c      |  20 ++++++++++----------
 sys/arch/arm/iomd/vidcaudio.c |   8 ++++----
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (117 lines):

diff -r 7e7c77df9543 -r f126ddda30ef sys/arch/arm/iomd/iomd.c
--- a/sys/arch/arm/iomd/iomd.c  Wed Oct 10 21:54:13 2012 +0000
+++ b/sys/arch/arm/iomd/iomd.c  Wed Oct 10 22:00:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iomd.c,v 1.20 2012/05/14 11:05:29 skrll Exp $  */
+/*     $NetBSD: iomd.c,v 1.21 2012/10/10 22:00:22 skrll Exp $  */
 
 /*
  * Copyright (c) 1996-1997 Mark Brinicombe.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iomd.c,v 1.20 2012/05/14 11:05:29 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iomd.c,v 1.21 2012/10/10 22:00:22 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -156,7 +156,7 @@
 
        /* Map the IOMD */
        if (bus_space_map(iot, (int) iomd_base, IOMD_SIZE, 0, &ioh))
-               panic("%s: Cannot map registers", self->dv_xname);
+               panic("%s: Cannot map registers", device_xname(self));
 
        sc->sc_ioh = ioh;
 
@@ -191,7 +191,7 @@
        aprint_normal("version %d\n", bus_space_read_1(iot, ioh, IOMD_VERSION));
 
        /* Report the DRAM refresh rate */
-       aprint_normal("%s: ", self->dv_xname);
+       aprint_normal("%s: ", device_xname(self));
        aprint_normal("DRAM refresh=");
        switch (refresh) {
        case 0x0:
@@ -221,7 +221,7 @@
         * attached
         */
        tmp = bus_space_read_1(iot, ioh, IOMD_IOTCR);
-       aprint_normal("%s: I/O timings: combo %c, NPCCS1/2 %c", self->dv_xname,
+       aprint_normal("%s: I/O timings: combo %c, NPCCS1/2 %c", device_xname(self),
            'A' + ((tmp >>2) & 3), 'A' + (tmp & 3));
        tmp = bus_space_read_1(iot, ioh, IOMD_ECTCR);
        aprint_normal(", EASI ");
@@ -257,7 +257,7 @@
 
        /* Attach kbd device when configured */
        if (bus_space_subregion(iot, ioh, IOMD_KBDDAT, 8, &ia.ia_kbd.ka_ioh))
-               panic("%s: Cannot map kbd registers", self->dv_xname);
+               panic("%s: Cannot map kbd registers", device_xname(self));
        ia.ia_kbd.ka_name = "kbd";
        ia.ia_kbd.ka_iot = iot;
        ia.ia_kbd.ka_rxirq = IRQ_KBDRX;
@@ -267,7 +267,7 @@
        /* Attach iic device */
 
        if (bus_space_subregion(iot, ioh, IOMD_IOCR, 4, &ia.ia_iic.ia_ioh))
-               panic("%s: Cannot map iic registers", self->dv_xname);
+               panic("%s: Cannot map iic registers", device_xname(self));
        ia.ia_iic.ia_name = "iic";
        ia.ia_iic.ia_iot = iot;
        ia.ia_iic.ia_irq = -1;
@@ -280,7 +280,7 @@
 
                if (bus_space_subregion(iot, ioh, IOMD_MSDATA, 8,
                        &ia.ia_opms.pa_ioh))
-                       panic("%s: Cannot map opms registers", self->dv_xname);
+                       panic("%s: Cannot map opms registers", device_xname(self));
                ia.ia_opms.pa_name = "opms";
                ia.ia_opms.pa_iot = iot;
                ia.ia_opms.pa_irq = IRQ_MSDRX;
@@ -291,10 +291,10 @@
 
                if (bus_space_subregion(iot, ioh, IOMD_MOUSEX, 8,
                        &ia.ia_qms.qa_ioh))
-                       panic("%s: Cannot map qms registers", self->dv_xname);
+                       panic("%s: Cannot map qms registers", device_xname(self));
 
                if (bus_space_map(iot, IO_MOUSE_BUTTONS, 4, 0, &ia.ia_qms.qa_ioh_but))
-                       panic("%s: Cannot map registers", self->dv_xname);
+                       panic("%s: Cannot map registers", device_xname(self));
                ia.ia_qms.qa_name = "qms";
                ia.ia_qms.qa_iot = iot;
                ia.ia_qms.qa_irq = IRQ_VSYNC;
diff -r 7e7c77df9543 -r f126ddda30ef sys/arch/arm/iomd/vidcaudio.c
--- a/sys/arch/arm/iomd/vidcaudio.c     Wed Oct 10 21:54:13 2012 +0000
+++ b/sys/arch/arm/iomd/vidcaudio.c     Wed Oct 10 22:00:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vidcaudio.c,v 1.50 2012/05/14 10:38:08 skrll Exp $     */
+/*     $NetBSD: vidcaudio.c,v 1.51 2012/10/10 22:00:22 skrll 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.50 2012/05/14 10:38:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.51 2012/10/10 22:00:22 skrll Exp $");
 
 #include <sys/audioio.h>
 #include <sys/conf.h>   /* autoconfig functions */
@@ -253,11 +253,11 @@
        sc->sc_ih.ih_func = vidcaudio_intr;
        sc->sc_ih.ih_arg = sc;
        sc->sc_ih.ih_level = IPL_AUDIO;
-       sc->sc_ih.ih_name = self->dv_xname;
+       sc->sc_ih.ih_name = device_xname(self);
 
        if (irq_claim(sc->sc_dma_intr, &sc->sc_ih) != 0) {
                aprint_error("%s: couldn't claim IRQ %d\n",
-                   self->dv_xname, sc->sc_dma_intr);
+                   device_xname(self), sc->sc_dma_intr);
                return;
        }
 



Home | Main Index | Thread Index | Old Index