drivers/ide/pci/cs5520.c fix return code value
PATCH 1/1 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.
--- vanilla-2.6.10/drivers/ide/pci/cs5520.c 2005-01-19
11:19:28.000000000 +0530
+++ linux-2.6.9/drivers/ide/pci/cs5520.c 2005-01-19
14:23:50.000000000 +0530
@@ -224,7 +224,7 @@
if(pci_enable_device_bars(dev, 1<<2))
{
printk(KERN_WARNING "%s: Unable to enable 55x0.\n",
d->name);
- return 1;
+ return -EAGAIN;
}
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
Quoted 10 lines · Amit Gud
Description: The patch follows from the suggestions by AC and Felipe W Damasio for fixing the return codes from IDE drivers.
Do consider applying.
Signed-off-by Amit Gud <[email protected]>---
vanilla-2.6.10/drivers/ide/pci/cs5520.c2005-01-19
11:19:28.000000000 +0530
Line wrap. (Turn this off in your mailer)
Review line 224
Quoted 4 lines
+++
linux-2.6.9/drivers/ide/pci/cs5520.c2005-01-19
14:23:50.000000000 +0530(quoted diff) +0
-0@@ -224,7 +224,7 @@ if(pci_enable_device_bars(dev, 1<<2))
Whitespace damage.
(Don't copy/paste. Try mailing patch to yourself first, and see if it
applies)
Review line 228
Quoted 5 lines
(quoted diff) +1
-1{ printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name); - return 1; + return -EAGAIN;
-EAGAIN? -ENODEV, like it's a few lines below looks more apropriate.
Quoted 5 lines
(quoted diff) +0
-0} pci_set_master(dev);if (pci_set_dma_mask(dev, 0xFFFFFFFF)) {
Wrt. generic.c patch... is seems already merged.
Domen
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 9 lines · Domen Puncer
Review line 224
Quoted 7 lines · Amit Gud
Description: The patch follows from the suggestions by AC and Felipe W Damasio for fixing the return codes from IDE drivers.
+++
linux-2.6.9/drivers/ide/pci/cs5520.c2005-01-19
14:23:50.000000000 +0530(quoted diff) +0
-0@@ -224,7 +224,7 @@ if(pci_enable_device_bars(dev, 1<<2))
also, please use diff -up as indicated inDocumentation/SubmittingPatches .
Signature · 5 lines
~Randy _______________________________________________ Kernel-janitors mailing list [email protected] http://lists.osdl.org/mailman/listinfo/kernel-janitors