xen: events: update pirq_to_irq in xen_create_msi_irq
authorIan Campbell <ian.campbell@citrix.com>
Fri, 18 Feb 2011 16:43:34 +0000 (16:43 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Mar 2011 19:44:42 +0000 (14:44 -0500)
I don't think this was a deliberate ommision.

Makes the tail end of this function look even more like
xen_bind_pirq_msi_to_irq.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c

index b54285e27b3b2baa434a22daef00b51839970d2a..721b393fd8aa26391dd2f652c90449c899633544 100644 (file)
@@ -730,6 +730,7 @@ int xen_create_msi_irq(struct pci_dev *dev, struct msi_desc *msidesc, int type)
                goto out;
 
        irq_info[irq] = mk_pirq_info(0, map_irq.pirq, 0, map_irq.index);
+       pirq_to_irq[map_irq.pirq] = irq;
 
        set_irq_chip_and_handler_name(irq, &xen_pirq_chip,
                        handle_level_irq,