From: Alan Cox Date: Sat, 19 Jan 2008 15:53:55 +0000 (+0000) Subject: pata_winbond: error return X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3e9b90265e9ab191c8f7e072fd0abf05824d2f1b;p=linux-beck.git pata_winbond: error return If no device is active return an error not zero. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik --- 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);