diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-03-07 12:12:40 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:03:07 -0500 |
commit | 1da0c93b31bb8f374a22f4e20dab02fd79f6c7e6 (patch) | |
tree | 486a3e07f08f2e969d43a3f3993130e1149ec40e /drivers | |
parent | 5f48047756339065df3e6fead381978abb0bc557 (diff) |
firewire: Only use INIT_DELAYED_WORK for first initialization.
Use PREPARE_DELAYED_WORK to just change the function pointer.
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index 2259e2225866..994914f89b55 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* -*- c-basic-offset: 8 -*- | 1 | /* -*- c-basic-offset: 8 -*- |
2 | * fw-sbp2.c -- SBP2 driver (SCSI over IEEE1394) | 2 | * fw-spb2.c -- SBP2 driver (SCSI over IEEE1394) |
3 | * | 3 | * |
4 | * Copyright (C) 2005-2007 Kristian Hoegsberg <krh@bitplanet.net> | 4 | * Copyright (C) 2005-2007 Kristian Hoegsberg <krh@bitplanet.net> |
5 | * | 5 | * |
@@ -577,7 +577,7 @@ static void sbp2_login(struct work_struct *work) | |||
577 | sbp2_set_busy_timeout(scsi_id); | 577 | sbp2_set_busy_timeout(scsi_id); |
578 | #endif | 578 | #endif |
579 | 579 | ||
580 | INIT_DELAYED_WORK(&sd->work, sbp2_reconnect); | 580 | PREPARE_DELAYED_WORK(&sd->work, sbp2_reconnect); |
581 | sbp2_agent_reset(unit); | 581 | sbp2_agent_reset(unit); |
582 | 582 | ||
583 | retval = add_scsi_devices(unit); | 583 | retval = add_scsi_devices(unit); |
@@ -587,7 +587,7 @@ static void sbp2_login(struct work_struct *work) | |||
587 | NULL); | 587 | NULL); |
588 | /* Set this back to sbp2_login so we fall back and | 588 | /* Set this back to sbp2_login so we fall back and |
589 | * retry login on bus reset. */ | 589 | * retry login on bus reset. */ |
590 | INIT_DELAYED_WORK(&sd->work, sbp2_login); | 590 | PREPARE_DELAYED_WORK(&sd->work, sbp2_login); |
591 | } | 591 | } |
592 | } | 592 | } |
593 | 593 | ||
@@ -714,7 +714,7 @@ static void sbp2_reconnect(struct work_struct *work) | |||
714 | unit->device.bus_id); | 714 | unit->device.bus_id); |
715 | /* Fall back and try to log in again. */ | 715 | /* Fall back and try to log in again. */ |
716 | sd->retries = 0; | 716 | sd->retries = 0; |
717 | INIT_DELAYED_WORK(&sd->work, sbp2_login); | 717 | PREPARE_DELAYED_WORK(&sd->work, sbp2_login); |
718 | } | 718 | } |
719 | schedule_delayed_work(&sd->work, DIV_ROUND_UP(HZ, 5)); | 719 | schedule_delayed_work(&sd->work, DIV_ROUND_UP(HZ, 5)); |
720 | return; | 720 | return; |