提交 366bdc01 编写于 作者: A Allen Pais 提交者: Greg Kroah-Hartman

usb: gadget: udc: r8a66597: use setup_timer() helper.

   Use setup_timer function instead of initializing timer with the
   function and data fields.
Signed-off-by: NAllen Pais <allen.lkml@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6a29d4b9
...@@ -1877,9 +1877,7 @@ static int r8a66597_probe(struct platform_device *pdev) ...@@ -1877,9 +1877,7 @@ static int r8a66597_probe(struct platform_device *pdev)
r8a66597->gadget.max_speed = USB_SPEED_HIGH; r8a66597->gadget.max_speed = USB_SPEED_HIGH;
r8a66597->gadget.name = udc_name; r8a66597->gadget.name = udc_name;
init_timer(&r8a66597->timer); setup_timer(&r8a66597->timer, r8a66597_timer, (unsigned long)r8a66597);
r8a66597->timer.function = r8a66597_timer;
r8a66597->timer.data = (unsigned long)r8a66597;
r8a66597->reg = reg; r8a66597->reg = reg;
if (r8a66597->pdata->on_chip) { if (r8a66597->pdata->on_chip) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册