diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-22 10:59:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-04 09:59:29 +0200 |
commit | 8c0e1832e0124f2f9b803abdaa12e30b0cac8b63 (patch) | |
tree | c0cd742dd333f6b51be0d4da1ae74880784f9112 /drivers/usb/gadget/udc | |
parent | usb: gadget: udc: m66592: use setup_timer() helper. (diff) | |
download | linux-8c0e1832e0124f2f9b803abdaa12e30b0cac8b63.tar.xz linux-8c0e1832e0124f2f9b803abdaa12e30b0cac8b63.zip |
usb: gadget: udc: pxa25x_udc: 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>
Diffstat (limited to 'drivers/usb/gadget/udc')
-rw-r--r-- | drivers/usb/gadget/udc/pxa25x_udc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index a238da906115..974b778e033c 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); |