Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5527c8bee27fa063dcec0e020fb8c242ba4270c2
Commit:     5527c8bee27fa063dcec0e020fb8c242ba4270c2
Parent:     106449e870b3069c049a3486ae7b47995351270c
Author:     Alexey Starikovskiy <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 29 17:08:59 2007 -0400
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Mon Oct 29 17:08:59 2007 -0400

    ACPI: use select POWER_SUPPLY for AC, BATTERY and SBS
    
    POWER_SUPPLY is needed for AC, battery, and SBS sysfs support.  Use
    'select' instead of 'depends on', as it is will not be selected by anything
    else, leading to confusion.
    
    Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]>
    Tested-by: Frans Pop <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/Kconfig |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 5d0e26a..ecd87d7 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -88,7 +88,8 @@ config ACPI_PROC_EVENT
 
 config ACPI_AC
        tristate "AC Adapter"
-       depends on X86 && POWER_SUPPLY
+       depends on X86
+       select POWER_SUPPLY
        default y
        help
          This driver adds support for the AC Adapter object, which indicates
@@ -97,7 +98,8 @@ config ACPI_AC
 
 config ACPI_BATTERY
        tristate "Battery"
-       depends on X86 && POWER_SUPPLY
+       depends on X86
+       select POWER_SUPPLY
        default y
        help
          This driver adds support for battery information through
@@ -352,7 +354,7 @@ config ACPI_HOTPLUG_MEMORY
 config ACPI_SBS
        tristate "Smart Battery System"
        depends on X86
-       depends on POWER_SUPPLY
+       select POWER_SUPPLY
        help
          This driver adds support for the Smart Battery System, another
          type of access to battery information, found on some laptops.
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to