From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbdIULn4 (ORCPT ); Thu, 21 Sep 2017 07:43:56 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34223 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbdIULnx (ORCPT ); Thu, 21 Sep 2017 07:43:53 -0400 X-Google-Smtp-Source: AOwi7QDnrw7sKSkV+MS+/btvpYnKA06PcdpAA7oUfK4Z72NllKgXjqUThC+gpc+dBlj4kVkqtVhs7Q== From: Allen Pais To: linux-kernel@vger.kernel.org Cc: matthew@wil.cx, linux-scsi@vger.kernel.org, Allen Pais Subject: [PATCH 1/1] drivers:scsi: use setup_timer Date: Thu, 21 Sep 2017 17:13:46 +0530 Message-Id: <1505994226-11265-1-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/scsi/sym53c8xx_2/sym_glue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index d32e3ba..285397d 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c @@ -1351,9 +1351,7 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, /* * Start the timer daemon */ - init_timer(&np->s.timer); - np->s.timer.data = (unsigned long) np; - np->s.timer.function = sym53c8xx_timer; + setup_timer(&np->s.timer, sym53c8xx_timer, (unsigned long)np); np->s.lasttime=0; sym_timer (np); -- 2.7.4