diff options
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index bd1faebf61a0..fca978fb158e 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -773,13 +773,13 @@ static int get_gsi_base(acpi_handle handle, u32 *gsi_base) | |||
773 | goto out; | 773 | goto out; |
774 | 774 | ||
775 | table = obj->buffer.pointer; | 775 | table = obj->buffer.pointer; |
776 | switch (((acpi_table_entry_header *)table)->type) { | 776 | switch (((struct acpi_subtable_header *)table)->type) { |
777 | case ACPI_MADT_IOSAPIC: | 777 | case ACPI_MADT_TYPE_IO_SAPIC: |
778 | *gsi_base = ((struct acpi_table_iosapic *)table)->global_irq_base; | 778 | *gsi_base = ((struct acpi_madt_io_sapic *)table)->global_irq_base; |
779 | result = 0; | 779 | result = 0; |
780 | break; | 780 | break; |
781 | case ACPI_MADT_IOAPIC: | 781 | case ACPI_MADT_TYPE_IO_APIC: |
782 | *gsi_base = ((struct acpi_table_ioapic *)table)->global_irq_base; | 782 | *gsi_base = ((struct acpi_madt_io_apic *)table)->global_irq_base; |
783 | result = 0; | 783 | result = 0; |
784 | break; | 784 | break; |
785 | default: | 785 | default: |