Skip to contentSkip to conversation

Resend: drivers/ide/pci/cs5520.c fix return code value

PATCH New [email protected] 1 participant 1 message Jun 20, 2005 libata

lore
Share & tools
lore
#0 lore raw

PATCH 3/6 Resend: drivers/ide/pci/cs5520.c fix return code value

From: Amit Gud <[email protected]>

The patch follows from the suggestions by AC and Felipe W Damasio for fixing the return codes from IDE drivers.

Do consider applying.

---
 cs5520.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/ide/pci/cs5520.c +1 -1
Index: quilt/drivers/ide/pci/cs5520.c
===================================================================
@@ -225,7 +225,7 @@ static int __devinit cs5520_init_one(str
 	if(pci_enable_device_bars(dev, 1<<2))
 	{
 		printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name);
-		return 1;
+		return -ENODEV;
 	}
 	pci_set_master(dev);
 	if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) {

--