mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
staging: visorbus, replace init_timer with setup_timer
Newer version is more readable and needs less changes if/when timer_struct is to be changed. Signed-off-by: Stefan Svinciak <xsvinc1@fi.muni.cz> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: David Kershner <david.kershner@unisys.com> Cc: <sparmaintainer@unisys.com> Acked-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dfbfa05210
commit
614dd644cb
1 changed files with 1 additions and 3 deletions
|
@ -623,9 +623,7 @@ create_visor_device(struct visor_device *dev)
|
|||
dev->device.release = visorbus_release_device;
|
||||
/* keep a reference just for us (now 2) */
|
||||
get_device(&dev->device);
|
||||
init_timer(&dev->timer);
|
||||
dev->timer.data = (unsigned long)(dev);
|
||||
dev->timer.function = dev_periodic_work;
|
||||
setup_timer(&dev->timer, dev_periodic_work, (unsigned long)dev);
|
||||
|
||||
/*
|
||||
* bus_id must be a unique name with respect to this bus TYPE
|
||||
|
|
Loading…
Reference in a new issue