diff options
author | Sean Young <sean@mess.org> | 2013-01-29 06:19:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-08 11:11:14 -0500 |
commit | d2008b56cfd6fa76ac6990d9c12a045ce5026c85 (patch) | |
tree | 9cde58c2617a173620d98d8b5372257722721fe7 /drivers/media | |
parent | c240ac9bc7470d4d060df3688b8e590cbbab9eb5 (diff) |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/ttusbir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c index 78be8a914225..f9226b83de41 100644 --- a/drivers/media/rc/ttusbir.c +++ b/drivers/media/rc/ttusbir.c | |||
@@ -408,9 +408,8 @@ static int ttusbir_resume(struct usb_interface *intf) | |||
408 | struct ttusbir *tt = usb_get_intfdata(intf); | 408 | struct ttusbir *tt = usb_get_intfdata(intf); |
409 | int i, rc; | 409 | int i, rc; |
410 | 410 | ||
411 | led_classdev_resume(&tt->led); | ||
412 | tt->is_led_on = true; | 411 | tt->is_led_on = true; |
413 | ttusbir_set_led(tt); | 412 | led_classdev_resume(&tt->led); |
414 | 413 | ||
415 | for (i = 0; i < NUM_URBS; i++) { | 414 | for (i = 0; i < NUM_URBS; i++) { |
416 | rc = usb_submit_urb(tt->urb[i], GFP_KERNEL); | 415 | rc = usb_submit_urb(tt->urb[i], GFP_KERNEL); |