summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/tmio_mmc.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-02-09 21:57:08 (GMT)
committerChris Ball <cjb@laptop.org>2012-03-27 16:20:15 (GMT)
commit2b1ac5c2caccbfd43bd616321cbbe21eb33c7879 (patch)
tree79be0a594ee1bab7a43b630231fe219b0717bb01 /drivers/mmc/host/tmio_mmc.h
parentc9b0546a59293cabf54c85e1218da595af3274ff (diff)
downloadlinux-2b1ac5c2caccbfd43bd616321cbbe21eb33c7879.tar.xz
mmc: tmio: calculate the native hotplug condition only once
The condition, whether we have to use the native TMIO card hotplug detection interrupt, is rather complex, it is better to only calculate it once and store in the private data. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.h')
-rw-r--r--drivers/mmc/host/tmio_mmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index f96c536..8531d8d 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -86,6 +86,7 @@ struct tmio_mmc_host {
spinlock_t lock; /* protect host private data */
unsigned long last_req_ts;
struct mutex ios_lock; /* protect set_ios() context */
+ bool native_hotplug;
};
int tmio_mmc_host_probe(struct tmio_mmc_host **host,