From 469e8e74c8d9d15421157feed1fa3a69f8ff4cd3 Mon Sep 17 00:00:00 2001 From: Christian Glindkamp Date: Thu, 5 Feb 2009 17:14:57 +0100 Subject: [PATCH] at91_mci: Use polling when no detect pin was specified --- drivers/mmc/host/at91_mci.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index e186ff0..b9bef4f 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c @@ -1077,6 +1077,12 @@ static int __init at91_mci_probe(struct platform_device *pdev) else host->present = -1; + /* + * use polling if no detect pin was specified + */ + if (!host->board->det_pin) + mmc->caps |= MMC_CAP_NEEDS_POLL; + mmc_add_host(mmc); /* -- 1.7.2.3