dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Alan Cox 2008-01-19 15:53:55 +00:00 committed by Jeff Garzik
parent 0f069788c3
commit 3e9b90265e
1 changed files with 1 additions and 1 deletions

View File

@ -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);