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: Allen Pais <allen.lkml@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
88189c10db
commit
3f948bdc63
|
@ -1592,9 +1592,7 @@ static int m66592_probe(struct platform_device *pdev)
|
|||
m66592->gadget.max_speed = USB_SPEED_HIGH;
|
||||
m66592->gadget.name = udc_name;
|
||||
|
||||
init_timer(&m66592->timer);
|
||||
m66592->timer.function = m66592_timer;
|
||||
m66592->timer.data = (unsigned long)m66592;
|
||||
setup_timer(&m66592->timer, m66592_timer, (unsigned long)m66592);
|
||||
m66592->reg = reg;
|
||||
|
||||
ret = request_irq(ires->start, m66592_irq, IRQF_SHARED,
|
||||
|
|
Loading…
Reference in New Issue