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

led_classdev_resume already sets the led.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Sean Young 2013-01-29 08:19:27 -03:00 committed by Mauro Carvalho Chehab
parent c240ac9bc7
commit d2008b56cf

View File

@ -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);