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

[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
......@@ -408,9 +408,8 @@ static int ttusbir_resume(struct usb_interface *intf)
struct ttusbir *tt = usb_get_intfdata(intf);
int i, rc;
led_classdev_resume(&tt->led);
tt->is_led_on = true;
ttusbir_set_led(tt);
led_classdev_resume(&tt->led);
for (i = 0; i < NUM_URBS; i++) {
rc = usb_submit_urb(tt->urb[i], GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment