aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLen Brown <lenb@kernel.org>2007-07-02 23:57:45 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-03 00:06:48 -0400
commitaa2e09da2a332e748532aa2a71b090e7e7c3203d (patch)
tree1495c704da5bb661e2fbdfe6bebc3fd50d028206 /drivers
parent52c4d73a6cca0db2927b60935e57429f98eae7c1 (diff)
ACPI: fix acpi_osi=!Linux
Need to check for special case "acpi_osi=!Linux" before handling the general case "acpi_osi=!*", or it will have no effect. Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/osl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 58ceb18ec997..2e7ba615d760 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -999,11 +999,11 @@ static int __init acpi_osi_setup(char *str)
999 if (str == NULL || *str == '\0') { 999 if (str == NULL || *str == '\0') {
1000 printk(KERN_INFO PREFIX "_OSI method disabled\n"); 1000 printk(KERN_INFO PREFIX "_OSI method disabled\n");
1001 acpi_gbl_create_osi_method = FALSE; 1001 acpi_gbl_create_osi_method = FALSE;
1002 } else if (!strcmp("!Linux", str)) {
1003 enable_osi_linux(0);
1002 } else if (*str == '!') { 1004 } else if (*str == '!') {
1003 if (acpi_osi_invalidate(++str) == AE_OK) 1005 if (acpi_osi_invalidate(++str) == AE_OK)
1004 printk(KERN_INFO PREFIX "Deleted _OSI(%s)\n", str); 1006 printk(KERN_INFO PREFIX "Deleted _OSI(%s)\n", str);
1005 } else if (!strcmp("!Linux", str)) {
1006 enable_osi_linux(0);
1007 } else if (!strcmp("Linux", str)) { 1007 } else if (!strcmp("Linux", str)) {
1008 enable_osi_linux(1); 1008 enable_osi_linux(1);
1009 } else if (*osi_additional_string == '\0') { 1009 } else if (*osi_additional_string == '\0') {