summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-22 14:29:43 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 09:59:30 +0200
commitfb9bbce6e67a2c33a1902380b1c3d3d96e75af52 (patch)
tree038aba76abd95907100fc7e651dc21f863ccef7e /drivers
parenteb72ca98e6b8cb7136e00b1774af4841e304bc9b (diff)
usb: gadget: udc: snps_udc_core: 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')
-rw-r--r--drivers/usb/gadget/udc/snps_udc_core.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/gadget/udc/snps_udc_core.c b/drivers/usb/gadget/udc/snps_udc_core.c
index 38a165dbf924..47df99dbaef4 100644
--- a/drivers/usb/gadget/udc/snps_udc_core.c
+++ b/drivers/usb/gadget/udc/snps_udc_core.c
@@ -3207,13 +3207,9 @@ int udc_probe(struct udc *dev)
goto finished;
/* timer init */
- init_timer(&udc_timer);
- udc_timer.function = udc_timer_function;
- udc_timer.data = 1;
+ setup_timer(&udc_timer, udc_timer_function, 1);
/* timer pollstall init */
- init_timer(&udc_pollstall_timer);
- udc_pollstall_timer.function = udc_pollstall_timer_function;
- udc_pollstall_timer.data = 1;
+ setup_timer(&udc_pollstall_timer, udc_pollstall_timer_function, 1);
/* set SD */
reg = readl(&dev->regs->ctl);