diff options
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index 62b4e47d0cc0..8fff18e05000 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -1119,6 +1119,7 @@ static int sbp2_probe(struct device *dev) | |||
1119 | goto fail_shost_put; | 1119 | goto fail_shost_put; |
1120 | 1120 | ||
1121 | fw_device_get(device); | 1121 | fw_device_get(device); |
1122 | get_device(&unit->device); | ||
1122 | 1123 | ||
1123 | /* Initialize to values that won't match anything in our table. */ | 1124 | /* Initialize to values that won't match anything in our table. */ |
1124 | firmware_revision = 0xff000000; | 1125 | firmware_revision = 0xff000000; |
@@ -1134,8 +1135,6 @@ static int sbp2_probe(struct device *dev) | |||
1134 | 1135 | ||
1135 | sbp2_init_workarounds(tgt, model, firmware_revision); | 1136 | sbp2_init_workarounds(tgt, model, firmware_revision); |
1136 | 1137 | ||
1137 | get_device(&unit->device); | ||
1138 | |||
1139 | /* Do the login in a workqueue so we can easily reschedule retries. */ | 1138 | /* Do the login in a workqueue so we can easily reschedule retries. */ |
1140 | list_for_each_entry(lu, &tgt->lu_list, link) | 1139 | list_for_each_entry(lu, &tgt->lu_list, link) |
1141 | sbp2_queue_work(lu, 0); | 1140 | sbp2_queue_work(lu, 0); |