Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb9bbce6 authored by Allen Pais's avatar Allen Pais Committed by Greg Kroah-Hartman
Browse files

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: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb72ca98
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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);