linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Len Brown <lenb@kernel.org>
Cc: linux-acpi <linux-acpi@vger.kernel.org>
Subject: [PATCH] Hide _OSI warning if osi_linux is enabled
Date: Tue, 06 Nov 2007 12:11:56 -0700	[thread overview]
Message-ID: <1194376316.31834.215.camel@bling> (raw)


   Seems like we don't need to print a big ugly warning when osi_linux
is already properly enabled.  Thanks,

	Alex

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
--

diff -r c7f1be4e5832 drivers/acpi/osl.c
--- a/drivers/acpi/osl.c	Thu Nov 01 12:09:33 2007 -0700
+++ b/drivers/acpi/osl.c	Tue Nov 06 12:08:38 2007 -0700
@@ -1167,14 +1167,15 @@ acpi_os_validate_interface (char *interf
 	if (!strncmp(osi_additional_string, interface, OSI_STRING_LENGTH_MAX))
 		return AE_OK;
 	if (!strcmp("Linux", interface)) {
+		if (osi_linux)
+			return AE_OK;
+
 		printk(KERN_WARNING PREFIX
 			"System BIOS is requesting _OSI(Linux)\n");
 		printk(KERN_WARNING PREFIX
 			"If \"acpi_osi=Linux\" works better,\n"
 			"Please send dmidecode "
 			"to linux-acpi@vger.kernel.org\n");
-		if(osi_linux)
-			return AE_OK;
 	}
 	return AE_SUPPORT;
 }



             reply	other threads:[~2007-11-06 19:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 19:11 Alex Williamson [this message]
2008-01-17  1:05 ` [PATCH] Hide _OSI warning if osi_linux is enabled Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1194376316.31834.215.camel@bling \
    --to=alex.williamson@hp.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).