From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753583AbdKXNb5 (ORCPT ); Fri, 24 Nov 2017 08:31:57 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53673 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbdKXNb4 (ORCPT ); Fri, 24 Nov 2017 08:31:56 -0500 From: Colin King To: Duncan Sands , Greg Kroah-Hartman , linux-usb@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: atm: use setup_timer instead of init_timer Date: Fri, 24 Nov 2017 13:31:54 +0000 Message-Id: <20171124133154.32117-1-colin.king@canonical.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(&channel->lock); INIT_LIST_HEAD(&channel->list); - channel->delay.function = usbatm_tasklet_schedule; - channel->delay.data = (unsigned long) &channel->tasklet; - init_timer(&channel->delay); + setup_timer(&channel->delay, usbatm_tasklet_schedule, + (unsigned long)&channel->tasklet); } int usbatm_usb_probe(struct usb_interface *intf, const struct usb_device_id *id, -- 2.14.1