projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477c87e
)
ARM: at91/ide: use gpio_is_valid to check the gpio
author
Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com>
Mon, 19 Sep 2011 07:30:14 +0000
(15:30 +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/ide/at91_ide.c
patch
|
blob
|
history
diff --git
a/drivers/ide/at91_ide.c
b/drivers/ide/at91_ide.c
index 6dede8f366c59417b3283cc03b220f6b5c58c97b..41d4155294793f0d204068a7410f4c02090a5c67 100644
(file)
--- 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;