projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0f597d
)
drivers: usb: phy: omap: use setup_timer() helper.
author
Allen Pais
<allen.lkml@gmail.com>
Fri, 22 Sep 2017 08:59:36 +0000
(14:29 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 4 Oct 2017 07:59:29 +0000
(09:59 +0200)
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>
drivers/usb/phy/phy-isp1301-omap.c
patch
|
blob
|
history
diff --git
a/drivers/usb/phy/phy-isp1301-omap.c
b/drivers/usb/phy/phy-isp1301-omap.c
index
718026b
..
8a07ce6
100644
(file)
--- 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;