X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fcdrom%2Fcm206.c;h=da80b14335a524d532ef9086d19a7e4ac26e81c3;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=ccd2603625dfbedd3d6831dd732c332cc0b88980;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/cdrom/cm206.c b/drivers/cdrom/cm206.c index ccd260362..da80b1433 100644 --- a/drivers/cdrom/cm206.c +++ b/drivers/cdrom/cm206.c @@ -302,7 +302,7 @@ struct cm206_struct { static struct cm206_struct *cd; /* the main memory structure */ static struct request_queue *cm206_queue; -static spinlock_t cm206_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(cm206_lock); /* First, we define some polling functions. These are actually only being used in the initialization. */