[ACPI] check acpi_disabled in IPMI
authorYann Droneaud <ydroneaud@mandriva.com>
Tue, 7 Jun 2005 14:54:01 +0000 (16:54 +0200)
committerLen Brown <len.brown@intel.com>
Wed, 31 Aug 2005 20:36:24 +0000 (16:36 -0400)
Signed-off-by: Yann Droneaud <ydroneaud@mandriva.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/char/ipmi/ipmi_si_intf.c

index c51b02d..adbec73 100644 (file)
@@ -1484,6 +1484,9 @@ static int try_init_acpi(int intf_num, struct smi_info **new_info)
        char             *io_type;
        u8               addr_space;
 
+       if (acpi_disabled)
+               return -ENODEV;
+
        if (acpi_failure)
                return -ENODEV;