]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: at91/ide: use gpio_is_valid to check the gpio
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Mon, 19 Sep 2011 07:30:14 +0000 (15:30 +0800)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 16 Oct 2011 19:22:18 +0000 (03:22 +0800)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/ide/at91_ide.c

index 000a78e5246c5c1d9f510fcfbbfc9cf35700137a..ba2eda3e6526e973f7aa7893c6ed0c33127be481 100644 (file)
@@ -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;