Skip to contentSkip to conversation

drivers/ide/pci/generic.c fix return code value

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

lore
Share & tools
lore

Amit Gud

author
#0 lore raw

PATCH 1/1 drivers/ide/pci/generic.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/generic.c 2005-01-19
11:19:28.000000000 +0530
+++ linux-2.6.9/drivers/ide/pci/generic.c 2005-01-19
11:15:36.000000000 +0530
@@ -100,18 +100,18 @@

        if (dev->vendor == PCI_VENDOR_ID_UMC &&
            dev->device == PCI_DEVICE_ID_UMC_UM8886A &&
            (!(PCI_FUNC(dev->devfn) & 1)))

- return 1; /* UM8886A/BF pair */
+ return -EAGAIN; /* UM8886A/BF pair */

        if (dev->vendor == PCI_VENDOR_ID_OPTI &&
            dev->device == PCI_DEVICE_ID_OPTI_82C558 &&
            (!(PCI_FUNC(dev->devfn) & 1)))

- return 1;
+ return -EAGAIN;

        pci_read_config_word(dev, PCI_COMMAND, &command);
        if(!(command & PCI_COMMAND_IO))
        {
                printk(KERN_INFO "Skipping disabled %s IDE
controller.\n", d->name);
-               return 1;
+               return -EAGAIN;
        }
        ide_setup_pci_device(dev, d);
        return 0;

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