summaryrefslogtreecommitdiff
path: root/drivers/media/rc/ttusbir.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2013-01-29 15:19:27 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-08 20:11:14 +0400
commitd2008b56cfd6fa76ac6990d9c12a045ce5026c85 (patch)
tree9cde58c2617a173620d98d8b5372257722721fe7 /drivers/media/rc/ttusbir.c
parentc240ac9bc7470d4d060df3688b8e590cbbab9eb5 (diff)
downloadlinux-d2008b56cfd6fa76ac6990d9c12a045ce5026c85.tar.xz
[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/rc/ttusbir.c')
-rw-r--r--drivers/media/rc/ttusbir.c3
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)
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);