Commit f169c105 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: timer: Use setup_timer() and mod_timer()



No functional change, refactoring with the standard helpers.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2a52b6ee
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1030,9 +1030,7 @@ static int snd_timer_register_system(void)
		snd_timer_free(timer);
		return -ENOMEM;
	}
	init_timer(&priv->tlist);
	priv->tlist.function = snd_timer_s_function;
	priv->tlist.data = (unsigned long) timer;
	setup_timer(&priv->tlist, snd_timer_s_function, (unsigned long) timer);
	timer->private_data = priv;
	timer->private_free = snd_timer_free_system;
	return snd_timer_global_register(timer);