patch-2.3.1 linux/drivers/scsi/eata_dma_proc.c

Next file: linux/drivers/scsi/gdth_proc.c
Previous file: linux/drivers/scsi/atari_scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/scsi/eata_dma_proc.c linux/drivers/scsi/eata_dma_proc.c
@@ -184,7 +184,7 @@
 	 * Do the command and wait for it to finish.
 	 */	
 	{
-	    struct semaphore sem = MUTEX_LOCKED;
+	    DECLARE_MUTEX_LOCKED(sem);
 	    scmd.request.rq_status = RQ_SCSI_BUSY;
 	    scmd.request.sem = &sem;
 	    scsi_do_cmd (&scmd, cmnd, buff + 0x144, 0x66,  
@@ -314,7 +314,7 @@
 	     * Do the command and wait for it to finish.
 	     */	
 	    {
-	        struct semaphore sem = MUTEX_LOCKED;
+	        DECLARE_MUTEX_LOCKED(sem);
 		scmd.request.rq_status = RQ_SCSI_BUSY;
 		scmd.request.sem = &sem;
 		scsi_do_cmd (&scmd, cmnd, buff2, 0x144,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)