diff options
-rw-r--r-- | drivers/ieee1394/hosts.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ieee1394/hosts.c b/drivers/ieee1394/hosts.c index b935e08695a9..25573bad81e0 100644 --- a/drivers/ieee1394/hosts.c +++ b/drivers/ieee1394/hosts.c | |||
@@ -157,10 +157,9 @@ struct hpsb_host *hpsb_alloc_host(struct hpsb_host_driver *drv, size_t extra, | |||
157 | h->speed_map = (u8 *)(h->csr.speed_map + 2); | 157 | h->speed_map = (u8 *)(h->csr.speed_map + 2); |
158 | 158 | ||
159 | mutex_lock(&host_num_alloc); | 159 | mutex_lock(&host_num_alloc); |
160 | |||
161 | while (nodemgr_for_each_host(&hostnum, alloc_hostnum_cb)) | 160 | while (nodemgr_for_each_host(&hostnum, alloc_hostnum_cb)) |
162 | hostnum++; | 161 | hostnum++; |
163 | 162 | mutex_unlock(&host_num_alloc); | |
164 | h->id = hostnum; | 163 | h->id = hostnum; |
165 | 164 | ||
166 | memcpy(&h->device, &nodemgr_dev_template_host, sizeof(h->device)); | 165 | memcpy(&h->device, &nodemgr_dev_template_host, sizeof(h->device)); |
@@ -175,8 +174,6 @@ struct hpsb_host *hpsb_alloc_host(struct hpsb_host_driver *drv, size_t extra, | |||
175 | class_device_register(&h->class_dev); | 174 | class_device_register(&h->class_dev); |
176 | get_device(&h->device); | 175 | get_device(&h->device); |
177 | 176 | ||
178 | mutex_unlock(&host_num_alloc); | ||
179 | |||
180 | return h; | 177 | return h; |
181 | } | 178 | } |
182 | 179 | ||