mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
[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:
parent
c240ac9bc7
commit
d2008b56cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user