Commit 3f948bdc authored by Allen Pais's avatar Allen Pais Committed by Greg Kroah-Hartman

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

   Use setup_timer function instead of initializing timer with the
   function and data fields.
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 88189c10
...@@ -1592,9 +1592,7 @@ static int m66592_probe(struct platform_device *pdev) ...@@ -1592,9 +1592,7 @@ static int m66592_probe(struct platform_device *pdev)
m66592->gadget.max_speed = USB_SPEED_HIGH; m66592->gadget.max_speed = USB_SPEED_HIGH;
m66592->gadget.name = udc_name; m66592->gadget.name = udc_name;
init_timer(&m66592->timer); setup_timer(&m66592->timer, m66592_timer, (unsigned long)m66592);
m66592->timer.function = m66592_timer;
m66592->timer.data = (unsigned long)m66592;
m66592->reg = reg; m66592->reg = reg;
ret = request_irq(ires->start, m66592_irq, IRQF_SHARED, ret = request_irq(ires->start, m66592_irq, IRQF_SHARED,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment