aboutsummaryrefslogtreecommitdiff
path: root/hw/tusb6010.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-08-31 21:49:39 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-09-07 09:58:27 +0200
commit9147b752887d65dfe2431f0fbff1d4a2545344d0 (patch)
tree188bae59411243c9c741dd64fa932396609bde9a /hw/tusb6010.c
parentd67915786822b42094ce99768e595994cf6de0bf (diff)
usb: Remove leading underscores from __musb_irq_max
Identifiers with double leading underscore are reserved, so rename __musb_irq_max so we don't encroach on reserved namespace. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/tusb6010.c')
-rw-r--r--hw/tusb6010.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/tusb6010.c b/hw/tusb6010.c
index de6ffc6133..78814f132c 100644
--- a/hw/tusb6010.c
+++ b/hw/tusb6010.c
@@ -785,9 +785,9 @@ static int tusb6010_init(SysBusDevice *dev)
sysbus_init_mmio_region(dev, &s->iomem[0]);
sysbus_init_mmio_region(dev, &s->iomem[1]);
sysbus_init_irq(dev, &s->irq);
- qdev_init_gpio_in(&dev->qdev, tusb6010_irq, __musb_irq_max + 1);
- musb_irqs = g_new0(qemu_irq, __musb_irq_max);
- for (i = 0; i < __musb_irq_max; i++) {
+ qdev_init_gpio_in(&dev->qdev, tusb6010_irq, musb_irq_max + 1);
+ musb_irqs = g_new0(qemu_irq, musb_irq_max);
+ for (i = 0; i < musb_irq_max; i++) {
musb_irqs[i] = qdev_get_gpio_in(&dev->qdev, i + 1);
}
s->musb = musb_init(musb_irqs);