From 3c9ed87db436cc6d74a862301139b4a86263141e Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Sat, 11 Sep 2010 13:36:20 +0200 Subject: [PATCH 19/52] MMCI: use _cansleep GPIO functions Currently the kernel is screaming about slowpath at me for the wp/cd callbacks. Swicth to the _cansleep variants so as to silence this. Signed-off-by: Linus Walleij --- drivers/mmc/host/mmci.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 55cd39e..ef9166a 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -614,7 +614,7 @@ static int mmci_get_ro(struct mmc_host *mmc) if (host->gpio_wp == -ENOSYS) return -ENOSYS; - return gpio_get_value(host->gpio_wp); + return gpio_get_value_cansleep(host->gpio_wp); } static int mmci_get_cd(struct mmc_host *mmc) @@ -629,7 +629,8 @@ static int mmci_get_cd(struct mmc_host *mmc) status = plat->status(mmc_dev(host->mmc)); } else - status = !!gpio_get_value(host->gpio_cd) ^ plat->cd_invert; + status = !!gpio_get_value_cansleep(host->gpio_cd) + ^ plat->cd_invert; /* * Use positive logic throughout - status is zero for no card, -- 1.6.3.3