Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddc21188 authored by Dominggoes Isakh's avatar Dominggoes Isakh
Browse files

media: video: m5mo: Fix release wakelock

Change-Id: Id53d757ea372c746cb3d3d46672fd6e89f26ff99
parent d7fcc1ed
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -952,6 +952,7 @@ retry:
		if (m5mo_wakelock_active) {
			cam_dbg("%s: FLASH_MODE_OFF: release wakelock\n", __func__);
			pm_wake_unlock("flash");
			m5mo_wakelock_active = false;
		}
#endif
		light = 0x00;
@@ -973,6 +974,7 @@ retry:
		if (!m5mo_wakelock_active) {
			cam_dbg("%s: FLASH_MODE_TORCH: acquire wakelock\n", __func__);
			pm_wake_lock("flash");
			m5mo_wakelock_active = true;
		}
#endif
		light = 0x03;