X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fblock%2FDAC960.c;h=2c0946c49d5d9cd428ccc4b1c5dcc790ea19f932;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=48c3e6399b6633482a8dfde59a982f287f5c8936;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 48c3e6399..2c0946c49 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c @@ -2678,7 +2678,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device, DAC960_Controller_T *Controller = NULL; unsigned char DeviceFunction = PCI_Device->devfn; unsigned char ErrorStatus, Parameter0, Parameter1; - unsigned int IRQ_Channel = PCI_Device->irq; + unsigned int IRQ_Channel; void __iomem *BaseAddress; int i; @@ -2738,7 +2738,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device, } init_waitqueue_head(&Controller->CommandWaitQueue); init_waitqueue_head(&Controller->HealthStatusWaitQueue); - Controller->queue_lock = SPIN_LOCK_UNLOCKED; + spin_lock_init(&Controller->queue_lock); DAC960_AnnounceDriver(Controller); /* Map the Controller Register Window. @@ -2958,6 +2958,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device, /* Acquire shared access to the IRQ Channel. */ + IRQ_Channel = PCI_Device->irq; if (request_irq(IRQ_Channel, InterruptHandler, SA_SHIRQ, Controller->FullModelName, Controller) < 0) {