Use setup_timer function instead of initializing timer with the
   function and data fields.

Signed-off-by: Allen Pais <[email protected]>
---
 drivers/usb/gadget/udc/m66592-udc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/gadget/udc/m66592-udc.c 
b/drivers/usb/gadget/udc/m66592-udc.c
index 46ce7bc..3b8dbed 100644
--- a/drivers/usb/gadget/udc/m66592-udc.c
+++ b/drivers/usb/gadget/udc/m66592-udc.c
@@ -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,
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to