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

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

usb: gadget: udc: m66592: 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 88189c10
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,