Commit 43d91483536437bac009f9dc6428b1828909e55a
Committed by
Arnd Bergmann
1 parent
477c87e908
Exists in
master
and in
6 other branches
ARM: at91/ide: use gpio_is_valid to check the gpio
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/ide/at91_ide.c
... | ... | @@ -314,7 +314,7 @@ |
314 | 314 | apply_timings(board->chipselect, 0, ide_timing_find_mode(XFER_PIO_0), 0); |
315 | 315 | |
316 | 316 | /* with GPIO interrupt we have to do quirks in handler */ |
317 | - if (board->irq_pin >= PIN_BASE) | |
317 | + if (gpio_is_valid(board->irq_pin)) | |
318 | 318 | host->irq_handler = at91_irq_handler; |
319 | 319 | |
320 | 320 | host->ports[0]->select_data = board->chipselect; |