Re: [PATCH] USB: atm: use setup_timer instead of init_timer

2017-11-28 Thread Greg Kroah-Hartman
On Fri, Nov 24, 2017 at 01:31:54PM +, Colin King wrote:
> From: Colin Ian King 
> 
> Use setup_timer function instead of initializing timer with the
> function and data fields.
> 
> Signed-off-by: Colin Ian King 
> ---
>  drivers/usb/atm/usbatm.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

This doesn't apply to 4.15-rc1 at all :(
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] USB: atm: use setup_timer instead of init_timer

2017-11-24 Thread Colin King
From: Colin Ian King 

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

Signed-off-by: Colin Ian King 
---
 drivers/usb/atm/usbatm.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c
index 044264aa1f96..ef456cd0d3ab 100644
--- a/drivers/usb/atm/usbatm.c
+++ b/drivers/usb/atm/usbatm.c
@@ -998,9 +998,8 @@ static void usbatm_init_channel(struct usbatm_channel 
*channel)
 {
spin_lock_init(>lock);
INIT_LIST_HEAD(>list);
-   channel->delay.function = usbatm_tasklet_schedule;
-   channel->delay.data = (unsigned long) >tasklet;
-   init_timer(>delay);
+   setup_timer(>delay, usbatm_tasklet_schedule,
+   (unsigned long)>tasklet);
 }
 
 int usbatm_usb_probe(struct usb_interface *intf, const struct usb_device_id 
*id,
-- 
2.14.1

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