hw/arm/nseries.c: Fix misusing qemu_allocate_irqs for single irq
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
5429273615
commit
294972ce54
|
@ -133,9 +133,8 @@ static void n800_mmc_cs_cb(void *opaque, int line, int level)
|
||||||
|
|
||||||
static void n8x0_gpio_setup(struct n800_s *s)
|
static void n8x0_gpio_setup(struct n800_s *s)
|
||||||
{
|
{
|
||||||
qemu_irq *mmc_cs = qemu_allocate_irqs(n800_mmc_cs_cb, s->mpu->mmc, 1);
|
qdev_connect_gpio_out(s->mpu->gpio, N8X0_MMC_CS_GPIO,
|
||||||
qdev_connect_gpio_out(s->mpu->gpio, N8X0_MMC_CS_GPIO, mmc_cs[0]);
|
qemu_allocate_irq(n800_mmc_cs_cb, s->mpu->mmc, 0));
|
||||||
|
|
||||||
qemu_irq_lower(qdev_get_gpio_in(s->mpu->gpio, N800_BAT_COVER_GPIO));
|
qemu_irq_lower(qdev_get_gpio_in(s->mpu->gpio, N800_BAT_COVER_GPIO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue