If no device is active return an error not zero.

Signed-off-by: Alan Cox <[EMAIL PROTECTED]>

diff -u --new-file --recursive --exclude-from /usr/src/exclude 
linux.vanilla-2.6.24-rc8-mm1/drivers/ata/pata_winbond.c 
linux-2.6.24-rc8-mm1/drivers/ata/pata_winbond.c
--- linux.vanilla-2.6.24-rc8-mm1/drivers/ata/pata_winbond.c     2008-01-19 
14:47:56.000000000 +0000
+++ linux-2.6.24-rc8-mm1/drivers/ata/pata_winbond.c     2008-01-19 
14:58:34.000000000 +0000
@@ -195,7 +195,7 @@
        reg = winbond_readcfg(port, 0x81);
 
        if (!(reg & 0x03))              /* Disabled */
-               return 0;
+               return -ENODEV;
 
        for (i = 0; i < 2 ; i ++) {
                unsigned long cmd_port = 0x1F0 - (0x80 * i);
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to