Skip to contentSkip to conversation

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

PATCH New Amit Gud 1 participant 1 message Jan 20, 2005 Kernel janitors

lore
Share & tools
lore

Amit Gud

#0 lore raw

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

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

Do consider applying.

drivers/ide/pci/cs5520.c +1 -1
@@ -224,7 +224,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, 0xFFFFFFFF)) {

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors