]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] IPMI: fix SI address space settings
authorCorey Minyard <minyard@acm.org>
Sat, 12 May 2007 17:36:58 +0000 (10:36 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:49 +0000 (14:32 -0700)
Fix a rather obvious error that Patrick found in the setup routines.  Need to
set the proper address space in the ACPI case.

Signed-off-by: Corey Minyard <minyard@acm.org>
Cc: Patrick Schoeller <Patrick.Schoeller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/char/ipmi/ipmi_si_intf.c

index e22146546adde92de6b01f15f98ebcf1ff02767c..cc13ebc5ca9600001c3f5bb273295a901b2f2482 100644 (file)
@@ -1859,10 +1859,10 @@ static __devinit int try_init_acpi(struct SPMITable *spmi)
 
        if (spmi->addr.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) {
                info->io_setup = mem_setup;
-               info->io.addr_type = IPMI_IO_ADDR_SPACE;
+               info->io.addr_type = IPMI_MEM_ADDR_SPACE;
        } else if (spmi->addr.space_id == ACPI_ADR_SPACE_SYSTEM_IO) {
                info->io_setup = port_setup;
-               info->io.addr_type = IPMI_MEM_ADDR_SPACE;
+               info->io.addr_type = IPMI_IO_ADDR_SPACE;
        } else {
                kfree(info);
                printk("ipmi_si: Unknown ACPI I/O Address type\n");