Commit a9fad4cc authored by Matt Domsch's avatar Matt Domsch Committed by Linus Torvalds

[PATCH] ipmi: use CONFIG_DMI instead of CONFIG_X86

With Andi Kleen's x86_64 patch to use DMI, and my ia64 to use DMI, there is
now a new CONFIG_DMI option which takes the place of CONFIG_X86 to denote
the availability of the DMI functions.  Make the IPMI driver use CONFIG_DMI
instead.

Tested on ia64 2.6.15 kernel plus the previous patch, on a Dell PowerEdge
7250 Itanium2 server, and it now autodetects the IPMI KCS driver as
expected.
Signed-off-by: default avatarMatt Domsch <Matt_Domsch@dell.com>
Acked-by: default avatarCorey Minyard <minyard@acm.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5c908a74
...@@ -1056,7 +1056,7 @@ MODULE_PARM_DESC(slave_addrs, "Set the default IPMB slave address for" ...@@ -1056,7 +1056,7 @@ MODULE_PARM_DESC(slave_addrs, "Set the default IPMB slave address for"
#define IPMI_MEM_ADDR_SPACE 1 #define IPMI_MEM_ADDR_SPACE 1
#define IPMI_IO_ADDR_SPACE 2 #define IPMI_IO_ADDR_SPACE 2
#if defined(CONFIG_ACPI) || defined(CONFIG_X86) || defined(CONFIG_PCI) #if defined(CONFIG_ACPI) || defined(CONFIG_DMI) || defined(CONFIG_PCI)
static int is_new_interface(int intf, u8 addr_space, unsigned long base_addr) static int is_new_interface(int intf, u8 addr_space, unsigned long base_addr)
{ {
int i; int i;
...@@ -1669,7 +1669,7 @@ static int try_init_acpi(int intf_num, struct smi_info **new_info) ...@@ -1669,7 +1669,7 @@ static int try_init_acpi(int intf_num, struct smi_info **new_info)
} }
#endif #endif
#ifdef CONFIG_X86 #ifdef CONFIG_DMI
typedef struct dmi_ipmi_data typedef struct dmi_ipmi_data
{ {
u8 type; u8 type;
...@@ -1829,7 +1829,7 @@ static int try_init_smbios(int intf_num, struct smi_info **new_info) ...@@ -1829,7 +1829,7 @@ static int try_init_smbios(int intf_num, struct smi_info **new_info)
ipmi_data->slave_addr); ipmi_data->slave_addr);
return 0; return 0;
} }
#endif /* CONFIG_X86 */ #endif /* CONFIG_DMI */
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
...@@ -2222,7 +2222,7 @@ static int init_one_smi(int intf_num, struct smi_info **smi) ...@@ -2222,7 +2222,7 @@ static int init_one_smi(int intf_num, struct smi_info **smi)
if (rv && si_trydefaults) if (rv && si_trydefaults)
rv = try_init_acpi(intf_num, &new_smi); rv = try_init_acpi(intf_num, &new_smi);
#endif #endif
#ifdef CONFIG_X86 #ifdef CONFIG_DMI
if (rv && si_trydefaults) if (rv && si_trydefaults)
rv = try_init_smbios(intf_num, &new_smi); rv = try_init_smbios(intf_num, &new_smi);
#endif #endif
...@@ -2433,7 +2433,7 @@ static __init int init_ipmi_si(void) ...@@ -2433,7 +2433,7 @@ static __init int init_ipmi_si(void)
printk(KERN_INFO "IPMI System Interface driver.\n"); printk(KERN_INFO "IPMI System Interface driver.\n");
#ifdef CONFIG_X86 #ifdef CONFIG_DMI
dmi_find_bmc(); dmi_find_bmc();
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment