提交 6878cce5 编写于 作者: S Samuel Thibault 提交者: Jeff Garzik

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: NJeff Garzik <jeff@garzik.org>
上级 0397bad5
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册