xen: pci: collapse apic_register_gsi_xen_hvm and xen_hvm_register_pirq
apic_register_gsi_xen_hvm is a tiny wrapper around xen_hvm_register_pirq. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
parent
4b41df7f6e
commit
9a626612c2
|
@ -20,7 +20,8 @@
|
||||||
#include <asm/xen/pci.h>
|
#include <asm/xen/pci.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ACPI
|
#ifdef CONFIG_ACPI
|
||||||
static int xen_hvm_register_pirq(u32 gsi, int triggering)
|
static int acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi,
|
||||||
|
int trigger, int polarity)
|
||||||
{
|
{
|
||||||
int rc, irq;
|
int rc, irq;
|
||||||
struct physdev_map_pirq map_irq;
|
struct physdev_map_pirq map_irq;
|
||||||
|
@ -41,7 +42,7 @@ static int xen_hvm_register_pirq(u32 gsi, int triggering)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (triggering == ACPI_EDGE_SENSITIVE) {
|
if (trigger == ACPI_EDGE_SENSITIVE) {
|
||||||
shareable = 0;
|
shareable = 0;
|
||||||
name = "ioapic-edge";
|
name = "ioapic-edge";
|
||||||
} else {
|
} else {
|
||||||
|
@ -55,12 +56,6 @@ static int xen_hvm_register_pirq(u32 gsi, int triggering)
|
||||||
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi,
|
|
||||||
int trigger, int polarity)
|
|
||||||
{
|
|
||||||
return xen_hvm_register_pirq(gsi, trigger);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_PCI_MSI)
|
#if defined(CONFIG_PCI_MSI)
|
||||||
|
|
Loading…
Reference in New Issue