[media] ttusbir: do not set led twice on resume
authorSean Young <sean@mess.org>
Tue, 29 Jan 2013 11:19:27 +0000 (08:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 8 Feb 2013 16:11:14 +0000 (14:11 -0200)
led_classdev_resume already sets the led.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ttusbir.c

index 78be8a91422533d7c6396dabadabb7af148a31a9..f9226b83de4135af4e1be904fb14fc3bbe43a10e 100644 (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);
This page took 0.026547 seconds and 5 git commands to generate.