aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 1abec687865c..278f84104996 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -1019,7 +1019,7 @@ MODULE_PARM_DESC(slave_addrs, "Set the default IPMB slave address for"
1019#define IPMI_MEM_ADDR_SPACE 1 1019#define IPMI_MEM_ADDR_SPACE 1
1020#define IPMI_IO_ADDR_SPACE 2 1020#define IPMI_IO_ADDR_SPACE 2
1021 1021
1022#if defined(CONFIG_ACPI_INTERPRETER) || defined(CONFIG_X86) || defined(CONFIG_PCI) 1022#if defined(CONFIG_ACPI) || defined(CONFIG_X86) || defined(CONFIG_PCI)
1023static int is_new_interface(int intf, u8 addr_space, unsigned long base_addr) 1023static int is_new_interface(int intf, u8 addr_space, unsigned long base_addr)
1024{ 1024{
1025 int i; 1025 int i;
@@ -1395,7 +1395,7 @@ static int try_init_mem(int intf_num, struct smi_info **new_info)
1395} 1395}
1396 1396
1397 1397
1398#ifdef CONFIG_ACPI_INTERPRETER 1398#ifdef CONFIG_ACPI
1399 1399
1400#include <linux/acpi.h> 1400#include <linux/acpi.h>
1401 1401
@@ -1517,6 +1517,9 @@ static int try_init_acpi(int intf_num, struct smi_info **new_info)
1517 char *io_type; 1517 char *io_type;
1518 u8 addr_space; 1518 u8 addr_space;
1519 1519
1520 if (acpi_disabled)
1521 return -ENODEV;
1522
1520 if (acpi_failure) 1523 if (acpi_failure)
1521 return -ENODEV; 1524 return -ENODEV;
1522 1525
@@ -2092,7 +2095,7 @@ static int init_one_smi(int intf_num, struct smi_info **smi)
2092 rv = try_init_mem(intf_num, &new_smi); 2095 rv = try_init_mem(intf_num, &new_smi);
2093 if (rv) 2096 if (rv)
2094 rv = try_init_port(intf_num, &new_smi); 2097 rv = try_init_port(intf_num, &new_smi);
2095#ifdef CONFIG_ACPI_INTERPRETER 2098#ifdef CONFIG_ACPI
2096 if (rv && si_trydefaults) 2099 if (rv && si_trydefaults)
2097 rv = try_init_acpi(intf_num, &new_smi); 2100 rv = try_init_acpi(intf_num, &new_smi);
2098#endif 2101#endif