Skip to content

Commit

Permalink
[media] ttusbir: do not set led twice on resume
Browse files Browse the repository at this point in the history
led_classdev_resume already sets the led.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sean Young authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent c240ac9 commit d2008b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/rc/ttusbir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d2008b5

Please sign in to comment.