[PATCH] mmc: tmio: populate correct callback when using GPIO CD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch "mmc: tmio: support IP-builtin card detection logic" had a
typo and populated RO instead of CD. Fix it.

Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
---

Ulf: I didn't add a Fixes: tag because you used to sometimes rebase your
for-next branch and thus the tag would dangle then. Do you still do that BTW?

 drivers/mmc/host/tmio_mmc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
index d82dfea381727e..e30df9ad8197c4 100644
--- a/drivers/mmc/host/tmio_mmc_core.c
+++ b/drivers/mmc/host/tmio_mmc_core.c
@@ -1244,7 +1244,7 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
 		_host->ops.get_ro = mmc_gpio_get_ro;
 
 	if (mmc_can_gpio_cd(mmc))
-		_host->ops.get_ro = mmc_gpio_get_cd;
+		_host->ops.get_cd = mmc_gpio_get_cd;
 
 	_host->native_hotplug = !(mmc_can_gpio_cd(mmc) ||
 				  mmc->caps & MMC_CAP_NEEDS_POLL ||
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux