[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:
Родитель
c240ac9bc7
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче