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

Commit c8fccd2e authored by Abinaya P's avatar Abinaya P
Browse files

leds: leds-qpnp: remove the usage of mutex_destroy for static mutex



Remove the call to mutex_destroy for the statically defined
mutex flash_lock.

CRs-Fixed: 640712
Change-Id: I664b0b94ff8e2f74d49d3f759d955bee513e5daf
Signed-off-by: default avatarAbinaya P <abinayap@codeaurora.org>
parent d3bcc96d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3907,8 +3907,6 @@ static int qpnp_leds_remove(struct spmi_device *spmi)
		if (led_array[i].id != QPNP_ID_FLASH1_LED0 &&
				led_array[i].id != QPNP_ID_FLASH1_LED1)
			mutex_destroy(&led_array[i].lock);
		else if (led_array[i].id == QPNP_ID_FLASH1_LED0)
			mutex_destroy(&flash_lock);

		led_classdev_unregister(&led_array[i].cdev);
		switch (led_array[i].id) {