]> err.no Git - linux-2.6/commitdiff
Pull procfs-default into release branch
authorLen Brown <len.brown@intel.com>
Tue, 20 Nov 2007 06:20:00 +0000 (01:20 -0500)
committerLen Brown <len.brown@intel.com>
Tue, 20 Nov 2007 06:20:00 +0000 (01:20 -0500)
Conflicts:

drivers/acpi/sbs.c

Signed-off-by: Len Brown <len.brown@intel.com>
1  2 
drivers/acpi/battery.c
drivers/acpi/sbs.c

Simple merge
index 73c1ba314299fa28582be042e91f44c8f6bcf2df,278d20f9366a6227b92f741b518450a6be333a27..6045cdbe176beafe7f250c65a0bf93b3fa428da7
@@@ -824,16 -817,14 +824,16 @@@ static int acpi_battery_add(struct acpi
  
  static void acpi_battery_remove(struct acpi_sbs *sbs, int id)
  {
 -      if (sbs->battery[id].bat.dev)
 -              device_remove_file(sbs->battery[id].bat.dev, &alarm_attr);
 -              power_supply_unregister(&sbs->battery[id].bat);
 -#ifdef CONFIG_ACPI_PROCFS_POWER
 -      if (sbs->battery[id].proc_entry) {
 -              acpi_sbs_remove_fs(&(sbs->battery[id].proc_entry),
 -                                 acpi_battery_dir);
 +      struct acpi_battery *battery = &sbs->battery[id];
 +
 +      if (battery->bat.dev) {
 +              if (battery->have_sysfs_alarm)
 +                      device_remove_file(battery->bat.dev, &alarm_attr);
 +              power_supply_unregister(&battery->bat);
        }
- #ifdef CONFIG_ACPI_PROCFS
++#ifdef CONFIG_ACPI_PROCFS_POWER
 +      if (battery->proc_entry)
 +              acpi_sbs_remove_fs(&battery->proc_entry, acpi_battery_dir);
  #endif
  }