From: Samuel Thibault Date: Thu, 3 May 2007 09:30:25 +0000 (+0200) Subject: Fix pata_qdi.c probe code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6878cce57b43b24eee1a4de6d189051c4646b575;p=openwrt%2Fstaging%2Fblogic.git Fix pata_qdi.c probe code There is a small typo in the probe code of pata_qdi.c, here is a patch. Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c index 27685ce63ceb..fb8c9e14b8d4 100644 --- a/drivers/ata/pata_qdi.c +++ b/drivers/ata/pata_qdi.c @@ -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 */