Skip to contentSkip to conversation

cciss update [3/5] pci_dev->irq fix

PATCH mikem 1 participant 1 message Aug 13, 2004 Block layer

lore
Share & tools
lore

mikem

author
#0 lore raw

Patch 3 of 5.
This patch changes our pdev->intr to an unsigned int to match the declaration in pci.h. Also cleans up the usage.
Applies to 2.4.27. Please consider this for inclusion.

Thanks,
mikem
-----------------------------------------------------------------------------

drivers/block/cciss.c +3 -3
diff -burNp lx2427-p002/drivers/block/cciss.c lx2427/drivers/block/cciss.c
@@ -2671,7 +2671,7 @@ static int find_PCI_BAR_index(struct pci
 static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
 {
 	ushort subsystem_vendor_id, subsystem_device_id, command;
-	unchar irq = pdev->irq, ready = 0;
+	int ready = 0;
 	__u32 board_id, scratchpad;
 	__u64 cfg_offset;
 	__u32 cfg_base_addr;
@@ -2727,11 +2727,11 @@ static int cciss_pci_init(ctlr_info_t *c
 
 #ifdef CCISS_DEBUG
 	printk("command = %x\n", command);
-	printk("irq = %x\n", irq);
+	printk("irq = %x\n", pdev->irq);
 	printk("board_id = %x\n", board_id);
 #endif /* CCISS_DEBUG */ 
 
-	c->intr = irq;
+	c->intr = pdev->irq;
 
 	/*
 	 * Memory base addr is first addr , the second points to the config
drivers/block/cciss.h +1 -1
diff -burNp lx2427-p002/drivers/block/cciss.h lx2427/drivers/block/cciss.h
@@ -51,7 +51,7 @@ struct ctlr_info 
 	unsigned long io_mem_addr;
 	unsigned long io_mem_length;
 	CfgTable_struct *cfgtable;
-	int	intr;
+	unsigned int	intr;
 	int	interrupts_enabled;
 	int 	max_commands;
 	int	commands_outstanding;