summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-09-19 15:30:14 +0800
committerArnd Bergmann <arnd@arndb.de>2011-11-29 15:46:15 +0000
commit43d91483536437bac009f9dc6428b1828909e55a (patch)
tree9286ca851381e20722c40013fef5276edd877489
parent477c87e90853d136b188c50c0e4a93d01cad872e (diff)
downloadlinux-43d91483536437bac009f9dc6428b1828909e55a.tar.gz
linux-43d91483536437bac009f9dc6428b1828909e55a.tar.bz2
linux-43d91483536437bac009f9dc6428b1828909e55a.zip
ARM: at91/ide: use gpio_is_valid to check the gpio
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-rw-r--r--drivers/ide/at91_ide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/at91_ide.c b/drivers/ide/at91_ide.c
index 6dede8f366c5..41d415529479 100644
--- a/drivers/ide/at91_ide.c
+++ b/drivers/ide/at91_ide.c
@@ -314,7 +314,7 @@ static int __init at91_ide_probe(struct platform_device *pdev)
apply_timings(board->chipselect, 0, ide_timing_find_mode(XFER_PIO_0), 0);
/* with GPIO interrupt we have to do quirks in handler */
- if (board->irq_pin >= PIN_BASE)
+ if (gpio_is_valid(board->irq_pin))
host->irq_handler = at91_irq_handler;
host->ports[0]->select_data = board->chipselect;