From: Pavel Machek <pavel@ucw.cz>
To: kernel list <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, Len Brown <len.brown@intel.com>
Subject: [patch] fix boot with acpi=off
Date: Sat, 8 Jul 2006 14:43:31 +0200 [thread overview]
Message-ID: <20060708124330.GA1577@elf.ucw.cz> (raw)
With acpi=off and acpi_ac/battery compiled into kernel, acpi breaks
boot. This fixes it.
Signed-off-by: Pavel Machek <pavel@suse.cz>
---
commit 30b8ecda788b096fbd7088808f9af65c41c3a83d
tree 3c28088018932f9ceb18bcf980507474d4a50c4e
parent 05f70501240c6ad5f852f13c187ee55579ad7bb8
author <pavel@amd.ucw.cz> Sat, 08 Jul 2006 14:43:13 +0200
committer <pavel@amd.ucw.cz> Sat, 08 Jul 2006 14:43:13 +0200
drivers/acpi/ac.c | 2 ++
drivers/acpi/battery.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index 24ccf81..432b6b7 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -285,6 +285,8 @@ static int __init acpi_ac_init(void)
{
int result;
+ if (acpi_disabled)
+ return -ENODEV;
acpi_ac_dir = acpi_lock_ac_dir();
if (!acpi_ac_dir)
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 2ce9b35..5af1f64 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -764,6 +764,9 @@ static int __init acpi_battery_init(void
{
int result;
+ if (acpi_disabled)
+ return -ENODEV;
+
acpi_battery_dir = acpi_lock_battery_dir();
if (!acpi_battery_dir)
return -ENODEV;
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next reply other threads:[~2006-07-08 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-08 12:43 Pavel Machek [this message]
2006-07-10 6:15 Brown, Len
2006-07-10 18:08 Lebedev, Vladimir P
2006-07-10 18:37 Brown, Len
2006-07-10 21:35 ` Andrew Morton
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=20060708124330.GA1577@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@osdl.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@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
Powered by JetHome