power: Fix I/O business parameter setting
authorChristopher N. Hesse <raymanfx@gmail.com>
Mon, 11 Jul 2016 13:49:49 +0000 (15:49 +0200)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Wed, 13 Jul 2016 00:32:47 +0000 (17:32 -0700)
This parameter should be set even if we bail out early.

Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71

power/power.c

index 72298c64b194ed67718c3044e5a990c86c2eeca0..f54c72ffc5ade38e627845adae164d297af7a5a4 100644 (file)
@@ -403,9 +403,8 @@ static void samsung_power_set_interactive(struct power_module *module, int on)
         sysfs_write(samsung_pwr->touchkey_power_path, "1");
     }
 
-    sysfs_write(IO_IS_BUSY_PATH, on ? "1" : "0");
-
 out:
+    sysfs_write(IO_IS_BUSY_PATH, on ? "1" : "0");
     ALOGV("power_set_interactive: %d done\n", on);
 }