summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2008-01-19 15:53:55 +0000
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:17 -0500
commit3e9b90265e9ab191c8f7e072fd0abf05824d2f1b (patch)
tree4dc623fdf6f8cf9675ec62d7a635eab9826b78f6 /drivers/ata
parent0f069788c32ea7af108c6032dfb0594cc718bde8 (diff)
downloadblackbird-op-linux-3e9b90265e9ab191c8f7e072fd0abf05824d2f1b.tar.gz
blackbird-op-linux-3e9b90265e9ab191c8f7e072fd0abf05824d2f1b.zip
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/ata')
-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)
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);
OpenPOWER on IntegriCloud