X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Fesp.c;h=d8ab73b680318a24976e029d2b7d01a4979c9fc6;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=782c31becb3ad151fb4d62d208d3f9f70ff2bd93;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c index 782c31bec..d8ab73b68 100644 --- a/drivers/scsi/esp.c +++ b/drivers/scsi/esp.c @@ -185,7 +185,7 @@ enum { /* The master ring of all esp hosts we are managing in this driver. */ static struct esp *espchain; -static spinlock_t espchain_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(espchain_lock); static int esps_running = 0; /* Forward declarations. */