diff options
author | Christoph Hellwig <hch@lst.de> | 2006-11-04 14:11:36 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-15 15:14:46 -0500 |
commit | 4f777ed26086452737ea52597cf8de26137090d5 (patch) | |
tree | 284030d230f9cd5528f611d34fd0a88c82edaac3 /drivers/scsi/hosts.c | |
parent | 3b00315799d78f76531b71435fbc2643cd71ae4c (diff) |
[SCSI] kill scsi_assign_lock
scsi_assign_lock has been unused for a long time and is a bad idea
in general, so kill it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r-- | drivers/scsi/hosts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 68ef1636678d..2ffdc9e0532d 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
@@ -301,8 +301,8 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) | |||
301 | if (!shost) | 301 | if (!shost) |
302 | return NULL; | 302 | return NULL; |
303 | 303 | ||
304 | spin_lock_init(&shost->default_lock); | 304 | shost->host_lock = &shost->default_lock; |
305 | scsi_assign_lock(shost, &shost->default_lock); | 305 | spin_lock_init(shost->host_lock); |
306 | shost->shost_state = SHOST_CREATED; | 306 | shost->shost_state = SHOST_CREATED; |
307 | INIT_LIST_HEAD(&shost->__devices); | 307 | INIT_LIST_HEAD(&shost->__devices); |
308 | INIT_LIST_HEAD(&shost->__targets); | 308 | INIT_LIST_HEAD(&shost->__targets); |