提交 d2008b56 编写于 作者: S Sean Young 提交者: Mauro Carvalho Chehab

[media] ttusbir: do not set led twice on resume

led_classdev_resume already sets the led.
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 c240ac9b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册