From patchwork Thu Oct 28 13:09:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Wysocki X-Patchwork-Id: 287542 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9SDD8Lb026517 for ; Thu, 28 Oct 2010 13:13:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758574Ab0J1NNJ (ORCPT ); Thu, 28 Oct 2010 09:13:09 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:33289 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758690Ab0J1NNH (ORCPT ); Thu, 28 Oct 2010 09:13:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ogre.sisk.pl (Postfix) with ESMTP id C811419B178; Thu, 28 Oct 2010 15:05:51 +0200 (CEST) Received: from ogre.sisk.pl ([127.0.0.1]) by localhost (ogre.sisk.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15547-05; Thu, 28 Oct 2010 15:05:23 +0200 (CEST) Received: from ferrari.rjw.lan (220-bem-13.acn.waw.pl [82.210.184.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ogre.sisk.pl (Postfix) with ESMTP id 7E55019B4C9; Thu, 28 Oct 2010 15:05:23 +0200 (CEST) From: "Rafael J. Wysocki" To: Matthew Garrett Subject: [RFC/RFT][PATCH 1/3] ACPI / PM: Register acpi_power_driver early Date: Thu, 28 Oct 2010 15:09:12 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-rjw+; KDE/4.4.4; x86_64; ; ) Cc: Len Brown , "Linux-pm mailing list" , ACPI Devel Maling List References: <201010281507.34994.rjw@sisk.pl> In-Reply-To: <201010281507.34994.rjw@sisk.pl> MIME-Version: 1.0 Message-Id: <201010281509.12271.rjw@sisk.pl> X-Virus-Scanned: amavisd-new at ogre.sisk.pl using MkS_Vir for Linux Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 28 Oct 2010 13:13:10 +0000 (UTC) Index: linux-2.6/drivers/acpi/bus.c =================================================================== --- linux-2.6.orig/drivers/acpi/bus.c +++ linux-2.6/drivers/acpi/bus.c @@ -1025,7 +1025,6 @@ static int __init acpi_init(void) acpi_scan_init(); acpi_ec_init(); - acpi_power_init(); acpi_sysfs_init(); acpi_debugfs_init(); acpi_sleep_proc_init(); Index: linux-2.6/drivers/acpi/scan.c =================================================================== --- linux-2.6.orig/drivers/acpi/scan.c +++ linux-2.6/drivers/acpi/scan.c @@ -1543,6 +1543,8 @@ int __init acpi_scan_init(void) printk(KERN_ERR PREFIX "Could not register bus type\n"); } + acpi_power_init(); + /* * Enumerate devices in the ACPI namespace. */