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

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

drivers: usb: speedtch: 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 366bdc01
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -874,16 +874,13 @@ static int speedtch_bind(struct usbatm_data *usbatm,
	usbatm->flags |= (use_isoc ? UDSL_USE_ISOC : 0);

	INIT_WORK(&instance->status_check_work, speedtch_check_status);
	init_timer(&instance->status_check_timer);

	instance->status_check_timer.function = speedtch_status_poll;
	instance->status_check_timer.data = (unsigned long)instance;
	setup_timer(&instance->status_check_timer, speedtch_status_poll,
		    (unsigned long)instance);
	instance->last_status = 0xff;
	instance->poll_delay = MIN_POLL_DELAY;

	init_timer(&instance->resubmit_timer);
	instance->resubmit_timer.function = speedtch_resubmit_int;
	instance->resubmit_timer.data = (unsigned long)instance;
	setup_timer(&instance->resubmit_timer, speedtch_resubmit_int,
		    (unsigned long)instance);

	instance->int_urb = usb_alloc_urb(0, GFP_KERNEL);