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/pxa25x_udc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c 
b/drivers/usb/gadget/udc/pxa25x_udc.c
index a238da9..974b778 100644
--- a/drivers/usb/gadget/udc/pxa25x_udc.c
+++ b/drivers/usb/gadget/udc/pxa25x_udc.c
@@ -2417,9 +2417,7 @@ static int pxa25x_udc_probe(struct platform_device *pdev)
                gpio_direction_output(dev->mach->gpio_pullup, 0);
        }
 
-       init_timer(&dev->timer);
-       dev->timer.function = udc_watchdog;
-       dev->timer.data = (unsigned long) dev;
+       setup_timer(&dev->timer, udc_watchdog, (unsigned long)dev);
 
        the_controller = dev;
        platform_set_drvdata(pdev, dev);
-- 
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