* [PATCH] Fix pata_qdi.c probe code
@ 2007-05-03 9:30 Samuel Thibault
2007-05-10 0:17 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2007-05-03 9:30 UTC (permalink / raw)
To: linux-kernel, akpm, alan
[-- Attachment #1: Type: text/plain, Size: 85 bytes --]
Hi,
There is a small typo in the probe code of pata_qdi.c, here is a patch.
Samuel
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 512 bytes --]
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index 27685ce..fb8c9e1 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 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix pata_qdi.c probe code
2007-05-03 9:30 [PATCH] Fix pata_qdi.c probe code Samuel Thibault
@ 2007-05-10 0:17 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-05-10 0:17 UTC (permalink / raw)
To: Samuel Thibault, linux-kernel, akpm, alan
Samuel Thibault wrote:
> Hi,
>
> There is a small typo in the probe code of pata_qdi.c, here is a patch.
>
> Samuel
>
>
> ------------------------------------------------------------------------
>
> diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
> index 27685ce..fb8c9e1 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++;
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-10 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 9:30 [PATCH] Fix pata_qdi.c probe code Samuel Thibault
2007-05-10 0:17 ` Jeff Garzik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.