Skip to content

Commit

Permalink
pata_winbond: error return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jan 23, 2008
1 parent 0f06978 commit 3e9b902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_winbond.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e9b902

Please sign in to comment.