aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2008-01-19 10:53:55 -0500
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:17 -0500
commit3e9b90265e9ab191c8f7e072fd0abf05824d2f1b (patch)
tree4dc623fdf6f8cf9675ec62d7a635eab9826b78f6 /drivers
parent0f069788c32ea7af108c6032dfb0594cc718bde8 (diff)
pata_winbond: error return
If no device is active return an error not zero. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/pata_winbond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_winbond.c b/drivers/ata/pata_winbond.c
index 17a9d0713232..99c92eda217b 100644
--- a/drivers/ata/pata_winbond.c
+++ b/drivers/ata/pata_winbond.c
@@ -195,7 +195,7 @@ static __init int winbond_init_one(unsigned long port)
195 reg = winbond_readcfg(port, 0x81); 195 reg = winbond_readcfg(port, 0x81);
196 196
197 if (!(reg & 0x03)) /* Disabled */ 197 if (!(reg & 0x03)) /* Disabled */
198 return 0; 198 return -ENODEV;
199 199
200 for (i = 0; i < 2 ; i ++) { 200 for (i = 0; i < 2 ; i ++) {
201 unsigned long cmd_port = 0x1F0 - (0x80 * i); 201 unsigned long cmd_port = 0x1F0 - (0x80 * i);