Commit 614dd644 authored by Stefan Svinciak's avatar Stefan Svinciak Committed by Greg Kroah-Hartman

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: default avatarStefan Svinciak <xsvinc1@fi.muni.cz>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Cc: David Kershner <david.kershner@unisys.com>
Cc: <sparmaintainer@unisys.com>
Acked-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dfbfa052
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment