Skip to content

Commit

Permalink
Fix pata_qdi.c probe code
Browse files Browse the repository at this point in the history
There is a small typo in the probe code of pata_qdi.c, here is a patch.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Samuel Thibault authored and Jeff Garzik committed May 10, 2007
1 parent 0397bad commit 6878cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_qdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static __init int qdi_init(void)
res = inb(port + 3);
if (res & 1) {
/* Single channel mode */
if (qdi_init_one(port, 6580, ide_port[r & 0x01], ide_irq[r & 0x01], r & 0x04))
if (qdi_init_one(port, 6580, ide_port[r & 0x01], ide_irq[r & 0x01], r & 0x04) == 0)
ct++;
} else {
/* Dual channel mode */
Expand Down

0 comments on commit 6878cce

Please sign in to comment.