PATCH: DAC960 (2.4.7) DECLARE_MUTEX_LOCKED -> DECLARE_COMPLETION
Hi!
Linus' decision to replace "DECLARE_MUTEX_LOCKED" by "DECLARE_COMPLETION" apparently hasn't reached the DAC960 driver. This patch fixes that. This means the driver now compiles. I don't have the hardware, so I can't tell if the driver actually works.
Rolf
drivers/block/DAC960.h renamed from drivers/block/DAC960.h.dac960 +2 -2
@@ -2153,7 +2153,7 @@typedef struct pt_regs Registers_T ;typedef struct request IO_Request_T ;typedef request_queue_t RequestQueue_T ; -typedef struct semaphore Semaphore_T ; +typedef struct completion Wait_T ;typedef struct super_block SuperBlock_T ;typedef struct timer_list Timer_T ;typedef wait_queue_head_t WaitQueue_T ;
@@ -2220,7 +2220,7 @@DAC960_CommandType_T CommandType;struct DAC960_Controller *Controller;struct DAC960_Command *Next; -Semaphore_T *Semaphore; +Wait_T *Wait;unsigned int LogicalDriveNumber;unsigned int BlockNumber;unsigned int BlockCount;
drivers/block/DAC960.c renamed from drivers/block/DAC960.c.dac960 +29 -28
149 lines not on this page · raw message