Skip to content

Commit

Permalink
ARM: at91/ide: use gpio_is_valid to check the gpio
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD authored and Arnd Bergmann committed Nov 29, 2011
1 parent 477c87e commit 43d9148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/at91_ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43d9148

Please sign in to comment.