projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc9f9ae
)
ARM: at91/pata: use gpio_is_valid to check the gpio
author
Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com>
Mon, 19 Sep 2011 07:29:53 +0000
(15:29 +0800)
committer
Arnd Bergmann
<arnd@arndb.de>
Tue, 29 Nov 2011 15:46:15 +0000
(15:46 +0000)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
drivers/ata/pata_at91.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_at91.c
b/drivers/ata/pata_at91.c
index a76f24a8e5db95a98b3f9dda9ecfc7dcab3eb4ce..5249e6d918a3831e0a899b6768e1a71695ebc2d3 100644
(file)
--- a/
drivers/ata/pata_at91.c
+++ b/
drivers/ata/pata_at91.c
@@
-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");
}
@@
-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,
+ ret
urn 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)