From: "Chew, Chiau Ee" <[email protected]>

This is to fix the card detection failure when the
card detect status is read from the GPIO status register.

Signed-off-by: Chew, Chiau Ee <[email protected]>
Signed-off-by: Maurice Petallo <[email protected]>
---
 drivers/mmc/host/sdhci-acpi.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
index c108d38..da7b35d 100644
--- a/drivers/mmc/host/sdhci-acpi.c
+++ b/drivers/mmc/host/sdhci-acpi.c
@@ -42,6 +42,7 @@
 #include <linux/mmc/host.h>
 #include <linux/mmc/pm.h>
 #include <linux/mmc/sdhci.h>
+#include <linux/mmc/slot-gpio.h>
 
 #include "sdhci.h"
 
@@ -338,8 +339,9 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
                goto err_free;
 
        if (sdhci_acpi_flag(c, SDHCI_ACPI_SD_CD)) {
-               if (sdhci_acpi_add_own_cd(dev, gpio, host->mmc))
+               if (mmc_gpio_request_cd(host->mmc, gpio, 0)) {
                        c->use_runtime_pm = false;
+               }
        }
 
        if (c->use_runtime_pm) {
-- 
1.7.10.4

-- 
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to