summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-isp1301-omap.c
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-22 10:59:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 09:59:29 +0200
commit88189c10db8a3d3d760e5f58aed935919cecfd98 (patch)
treecfc162bbac8bd6dfbae2b1ccc52ba6cb48fe53a1 /drivers/usb/phy/phy-isp1301-omap.c
parentdrivers: usb: hcd: use setup_timer() helper. (diff)
downloadlinux-88189c10db8a3d3d760e5f58aed935919cecfd98.tar.xz
linux-88189c10db8a3d3d760e5f58aed935919cecfd98.zip
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>
Diffstat (limited to 'drivers/usb/phy/phy-isp1301-omap.c')
-rw-r--r--drivers/usb/phy/phy-isp1301-omap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy-isp1301-omap.c b/drivers/usb/phy/phy-isp1301-omap.c
index 718026bed1b6..8a07ce63b92d 100644
--- a/drivers/usb/phy/phy-isp1301-omap.c
+++ b/drivers/usb/phy/phy-isp1301-omap.c
@@ -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;