summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ac.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2011-01-10 11:16:30 +0800
committerLen Brown <len.brown@intel.com>2011-01-12 00:36:17 -0500
commit6d855fcdd24d2491455527c4999b4d04363f1980 (patch)
tree19faadd4e6d1edc0d0eacca076d50902f7f0b3fe /drivers/acpi/ac.c
parentcef6e8a3790d6bdc305496629c357a56001d59a6 (diff)
downloadlinux-stable-6d855fcdd24d2491455527c4999b4d04363f1980.tar.gz
linux-stable-6d855fcdd24d2491455527c4999b4d04363f1980.tar.bz2
linux-stable-6d855fcdd24d2491455527c4999b4d04363f1980.zip
ACPI: delete CONFIG_ACPI_PROCFS_POWER and power procfs I/F in 2.6.39
sysfs I/F for ACPI power devices, including AC and Battery, has been working in upstream kenrel since 2.6.24, Sep 2007. In 2.6.37, we made the sysfs I/F always built in and this option disabled by default. Now, we plan to remove this option and the ACPI power procfs interface in 2.6.39. First, update the feature-removal-schedule to announce this change. Second, add runtime warnings in ACPI AC/Battery/SBS driver, so that users will notice this change even if "make oldconfig" is used. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r--drivers/acpi/ac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index ba9afeaa23ac..f441e92481f6 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -185,7 +185,8 @@ static int acpi_ac_add_fs(struct acpi_device *device)
{
struct proc_dir_entry *entry = NULL;
-
+ printk(KERN_WARNING PREFIX "Deprecated procfs I/F for AC is loaded,"
+ " please retry with CONFIG_ACPI_PROCFS_POWER cleared\n");
if (!acpi_device_dir(device)) {
acpi_device_dir(device) = proc_mkdir(acpi_device_bid(device),
acpi_ac_dir);