ec.c (f4b96f5e4ff8d86699c851c10245e102809b0331) | ec.c (952c63e9512b63220886105cfc791507046fa39a) |
---|---|
1/* 2 * ec.c - ACPI Embedded Controller Driver (v2.1) 3 * 4 * Copyright (C) 2006-2008 Alexey Starikovskiy <astarikovskiy@suse.de> 5 * Copyright (C) 2006 Denis Sadykov <denis.m.sadykov@intel.com> 6 * Copyright (C) 2004 Luming Yu <luming.yu@intel.com> 7 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 8 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> --- 1035 unchanged lines hidden (view full) --- 1044 "output of acpidump to linux-acpi@vger.kernel.org\n"); 1045 kfree(saved_ec); 1046 saved_ec = NULL; 1047 } else { 1048 /* We really need to limit this workaround, the only ASUS, 1049 * which needs it, has fake EC._INI method, so use it as flag. 1050 * Keep boot_ec struct as it will be needed soon. 1051 */ | 1/* 2 * ec.c - ACPI Embedded Controller Driver (v2.1) 3 * 4 * Copyright (C) 2006-2008 Alexey Starikovskiy <astarikovskiy@suse.de> 5 * Copyright (C) 2006 Denis Sadykov <denis.m.sadykov@intel.com> 6 * Copyright (C) 2004 Luming Yu <luming.yu@intel.com> 7 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 8 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> --- 1035 unchanged lines hidden (view full) --- 1044 "output of acpidump to linux-acpi@vger.kernel.org\n"); 1045 kfree(saved_ec); 1046 saved_ec = NULL; 1047 } else { 1048 /* We really need to limit this workaround, the only ASUS, 1049 * which needs it, has fake EC._INI method, so use it as flag. 1050 * Keep boot_ec struct as it will be needed soon. 1051 */ |
1052 acpi_handle dummy; | |
1053 if (!dmi_name_in_vendors("ASUS") || | 1052 if (!dmi_name_in_vendors("ASUS") || |
1054 ACPI_FAILURE(acpi_get_handle(boot_ec->handle, "_INI", 1055 &dummy))) | 1053 !acpi_has_method(boot_ec->handle, "_INI")) |
1056 return -ENODEV; 1057 } 1058install: 1059 if (!ec_install_handlers(boot_ec)) { 1060 first_ec = boot_ec; 1061 return 0; 1062 } 1063error: --- 36 unchanged lines hidden --- | 1054 return -ENODEV; 1055 } 1056install: 1057 if (!ec_install_handlers(boot_ec)) { 1058 first_ec = boot_ec; 1059 return 0; 1060 } 1061error: --- 36 unchanged lines hidden --- |