diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-22 10:59:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-04 09:59:29 +0200 |
commit | b0f597da0d52b15c17d78520b708e00b092de1ba (patch) | |
tree | 01a9d15cc0afe7eddf8ef5a5891fa5e289f68b23 /drivers/usb | |
parent | ehci-atmel: Power down during suspend is normal (diff) | |
download | linux-b0f597da0d52b15c17d78520b708e00b092de1ba.tar.xz linux-b0f597da0d52b15c17d78520b708e00b092de1ba.zip |
drivers: usb: hcd: 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')
-rw-r--r-- | drivers/usb/core/hcd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 75ad6718858c..67aa3d039b9b 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2558,9 +2558,7 @@ struct usb_hcd *__usb_create_hcd(const struct hc_driver *driver, hcd->self.bus_name = bus_name; hcd->self.uses_dma = (sysdev->dma_mask != NULL); - init_timer(&hcd->rh_timer); - hcd->rh_timer.function = rh_timer_func; - hcd->rh_timer.data = (unsigned long) hcd; + setup_timer(&hcd->rh_timer, rh_timer_func, (unsigned long)hcd); #ifdef CONFIG_PM INIT_WORK(&hcd->wakeup_work, hcd_resume_work); #endif |