mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
drivers: usb: phy: omap: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b0f597da0d
commit
88189c10db
@ -1506,9 +1506,7 @@ isp1301_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
|
||||
}
|
||||
|
||||
INIT_WORK(&isp->work, isp1301_work);
|
||||
init_timer(&isp->timer);
|
||||
isp->timer.function = isp1301_timer;
|
||||
isp->timer.data = (unsigned long) isp;
|
||||
setup_timer(&isp->timer, isp1301_timer, (unsigned long)isp);
|
||||
|
||||
i2c_set_clientdata(i2c, isp);
|
||||
isp->client = i2c;
|
||||
|
Loading…
Reference in New Issue
Block a user