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

Commit d2008b56 authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab
Browse files

[media] ttusbir: do not set led twice on resume



led_classdev_resume already sets the led.

Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c240ac9b
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -408,9 +408,8 @@ static int ttusbir_resume(struct usb_interface *intf)
	struct ttusbir *tt = usb_get_intfdata(intf);
	struct ttusbir *tt = usb_get_intfdata(intf);
	int i, rc;
	int i, rc;


	led_classdev_resume(&tt->led);
	tt->is_led_on = true;
	tt->is_led_on = true;
	ttusbir_set_led(tt);
	led_classdev_resume(&tt->led);


	for (i = 0; i < NUM_URBS; i++) {
	for (i = 0; i < NUM_URBS; i++) {
		rc = usb_submit_urb(tt->urb[i], GFP_KERNEL);
		rc = usb_submit_urb(tt->urb[i], GFP_KERNEL);