Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281525
b: refs/heads/master
c: 477c87e
h: refs/heads/master
i:
  281523: b74897d
v: v3
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD authored and Arnd Bergmann committed Nov 29, 2011
1 parent 24c301e commit d643bad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc9f9aef6ad3ebdda911e25b38222c215f7634f9
refs/heads/master: 477c87e90853d136b188c50c0e4a93d01cad872e
6 changes: 3 additions & 3 deletions trunk/drivers/ata/pata_at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static int __devinit pata_at91_probe(struct platform_device *pdev)
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->pio_mask = ATA_PIO4;

if (!irq) {
if (!gpio_is_valid(irq)) {
ap->flags |= ATA_FLAG_PIO_POLLING;
ata_port_desc(ap, "no IRQ, using PIO polling");
}
Expand Down Expand Up @@ -414,8 +414,8 @@ static int __devinit pata_at91_probe(struct platform_device *pdev)

host->private_data = info;

ret = ata_host_activate(host, irq ? gpio_to_irq(irq) : 0,
irq ? ata_sff_interrupt : NULL,
return ata_host_activate(host, gpio_is_valid(irq) ? gpio_to_irq(irq) : 0,
gpio_is_valid(irq) ? ata_sff_interrupt : NULL,
irq_flags, &pata_at91_sht);

if (!ret)
Expand Down

0 comments on commit d643bad

Please sign in to comment.