Use setup_timer function instead of initializing timer with the
   function and data fields.

Signed-off-by: Allen Pais <[email protected]>
---
 drivers/usb/phy/phy-isp1301-omap.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/phy/phy-isp1301-omap.c 
b/drivers/usb/phy/phy-isp1301-omap.c
index c6052c8..5630840 100644
--- a/drivers/usb/phy/phy-isp1301-omap.c
+++ b/drivers/usb/phy/phy-isp1301-omap.c
@@ -1507,9 +1507,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;
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to