qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH RFC v2 7/9] hw: set interrupts using pci irq wra


From: Marcel Apfelbaum
Subject: Re: [Qemu-devel] [PATCH RFC v2 7/9] hw: set interrupts using pci irq wrappers
Date: Mon, 07 Oct 2013 10:13:11 +0300

On Mon, 2013-10-07 at 09:02 +0200, Gerd Hoffmann wrote:
> On Mi, 2013-10-02 at 15:41 +0300, Marcel Apfelbaum wrote:
> > --- a/hw/usb/hcd-uhci.c
> > +++ b/hw/usb/hcd-uhci.c
> > @@ -381,7 +381,7 @@ static void uhci_update_irq(UHCIState *s)
> >      } else {
> >          level = 0;
> >      }
> > -    qemu_set_irq(s->dev.irq[s->irq_pin], level);
> > +    pci_set_irq(&s->dev, level);
> >  }
> >  
> >  static void uhci_reset(void *opaque)
> 
> That renders s->irq_pin unused.  You can drop the struct member and the
> initialization code for it.
Got it, thanks!
Marcel

> 
> cheers,
>   Gerd
> 
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]