aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2011-08-04 11:49:03 -0400
committerChris Ball <cjb@laptop.org>2011-10-26 15:43:27 -0400
commit51c5d8d1499b8442e863fe756f76e7f4ea7476fb (patch)
tree2188432e22a0ca049e6098ef40d2394e1dba8d43
parent7e8ba228d9f43a4e4b3ed0e6aa3399e8f30d7bc1 (diff)
mmc: at91_mci: remove the use of irq_to_gpio
Remove the use of irq_to_gpio() in the card detection interrupt handler. The information is available in the board structure and we can avoid using a function that has little meaning. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/host/at91_mci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c
index a4aa3af86fed..a8b4d2aa18e5 100644
--- a/drivers/mmc/host/at91_mci.c
+++ b/drivers/mmc/host/at91_mci.c
@@ -869,7 +869,11 @@ static irqreturn_t at91_mci_irq(int irq, void *devid)
869static irqreturn_t at91_mmc_det_irq(int irq, void *_host) 869static irqreturn_t at91_mmc_det_irq(int irq, void *_host)
870{ 870{
871 struct at91mci_host *host = _host; 871 struct at91mci_host *host = _host;
872 int present = !gpio_get_value(irq_to_gpio(irq)); 872 int present;
873
874 /* entering this ISR means that we have configured det_pin:
875 * we can use its value in board structure */
876 present = !gpio_get_value(host->board->det_pin);
873 877
874 /* 878 /*
875 * we expect this irq on both insert and remove, 879 * we expect this irq on both insert and remove,