]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Pull sbs into release branch
authorLen Brown <len.brown@intel.com>
Sun, 12 Aug 2007 04:21:22 +0000 (00:21 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 12 Aug 2007 04:21:22 +0000 (00:21 -0400)
drivers/acpi/sbs.c

index 7d8e78ea13a514c4969aaecc069b73f2a3b400d8..82c3a550016d82068798351123f5d2b429ef64d4 100644 (file)
@@ -1415,7 +1415,7 @@ static int acpi_sbs_update_run(struct acpi_sbs *sbs, int id, int data_type)
        char dir_name[32];
        int do_battery_init = 0, do_ac_init = 0;
        int old_remaining_capacity = 0;
-       int update_ac = 1, update_battery = 1;
+       int update_battery = 1;
        int up_tm = update_time;
 
        if (sbs_zombie(sbs)) {
@@ -1435,10 +1435,6 @@ static int acpi_sbs_update_run(struct acpi_sbs *sbs, int id, int data_type)
 
        sbs->run_cnt++;
 
-       if (!update_ac && !update_battery) {
-               goto end;
-       }
-
        old_ac_present = sbs->ac.ac_present;
 
        result = acpi_ac_get_present(sbs);