diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-05-01 18:51:38 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-07-21 08:02:17 +0400 |
commit | a7d1a1ebd8f5858a812ac3d5fbbc178b4959a63b (patch) | |
tree | b96e8522469e2b228a265db89a9d2bc8f0b5e390 /include | |
parent | befe4048d8d20483a62636e20f3dbffebf85a1c1 (diff) | |
download | linux-a7d1a1ebd8f5858a812ac3d5fbbc178b4959a63b.tar.xz |
mmc: core: convert slot functions to managed allocation
This prepares for the addition of further slot functions.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mmc/host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index c1a03eed1d17..65c64ee578a7 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -11,6 +11,7 @@ #define LINUX_MMC_HOST_H #include <linux/leds.h> +#include <linux/mutex.h> #include <linux/sched.h> #include <linux/device.h> #include <linux/fault-inject.h> @@ -154,6 +155,7 @@ struct mmc_async_req { * struct mmc_slot - MMC slot functions * * @cd_irq: MMC/SD-card slot hotplug detection IRQ or -EINVAL + * @lock: protect the @handler_priv pointer * @handler_priv: MMC/SD-card slot context * * Some MMC/SD host controllers implement slot-functions like card and @@ -163,6 +165,7 @@ struct mmc_async_req { */ struct mmc_slot { int cd_irq; + struct mutex lock; void *handler_priv; }; |