summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorRobert Love <robert.w.love@intel.com>2009-02-27 19:56:00 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-10 15:05:57 +0100
commita468f328ad83f14556e5961ef1de80b32b428d32 (patch)
tree17caa9c68f69a1d714b2e73f5364bd2b9078d8f3 /drivers/scsi
parent[SCSI] libfc, fcoe: Remove unnecessary cast by removing inline wrapper (diff)
downloadlinux-a468f328ad83f14556e5961ef1de80b32b428d32.tar.xz
linux-a468f328ad83f14556e5961ef1de80b32b428d32.zip
[SCSI] fcoe: Use setup_timer() and mod_timer()
Use helper functions for watchdog timer setup. Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/fcoe/libfcoe.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
index 02f044a87159..7887f2a7c2aa 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -1435,11 +1435,9 @@ static int __init fcoe_init(void)
*/
fcoe_dev_setup();
- init_timer(&fcoe_timer);
- fcoe_timer.data = 0;
- fcoe_timer.function = fcoe_watchdog;
- fcoe_timer.expires = (jiffies + (10 * HZ));
- add_timer(&fcoe_timer);
+ setup_timer(&fcoe_timer, fcoe_watchdog, 0);
+
+ mod_timer(&fcoe_timer, jiffies + (10 * HZ));
/* initiatlize the fcoe transport */
fcoe_transport_init();