diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-12-18 09:44:32 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-19 03:56:16 -0500 |
commit | eddbc3abc5bf11bdfc92ef84fd97ec4d379b7278 (patch) | |
tree | ddca9bee9a9c0aa6b7c8c253a16ec7691e128c7b /include/linux/mmc | |
parent | c2f28eecdab3894a931c34c1904bdb502bd0a05f (diff) |
mmc: slot-gpio: Remove option to explicitly free requested CD/WP GPIOs
The slot-gpio uses the devm*_ managed functions. Still it provide APIs
to explicitly free requested CD/WP GPIOs, but these API isn't being
used.
Therefore let's simplify slot-gpio by removing these unused APIs. If it
later turns out we need some of them, we can always consider to restore
the code.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/slot-gpio.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h index e56fa24c9322..4a36d6954631 100644 --- a/include/linux/mmc/slot-gpio.h +++ b/include/linux/mmc/slot-gpio.h | |||
@@ -15,12 +15,10 @@ struct mmc_host; | |||
15 | 15 | ||
16 | int mmc_gpio_get_ro(struct mmc_host *host); | 16 | int mmc_gpio_get_ro(struct mmc_host *host); |
17 | int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio); | 17 | int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio); |
18 | void mmc_gpio_free_ro(struct mmc_host *host); | ||
19 | 18 | ||
20 | int mmc_gpio_get_cd(struct mmc_host *host); | 19 | int mmc_gpio_get_cd(struct mmc_host *host); |
21 | int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio, | 20 | int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio, |
22 | unsigned int debounce); | 21 | unsigned int debounce); |
23 | void mmc_gpio_free_cd(struct mmc_host *host); | ||
24 | 22 | ||
25 | int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, | 23 | int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, |
26 | unsigned int idx, bool override_active_level, | 24 | unsigned int idx, bool override_active_level, |
@@ -28,7 +26,6 @@ int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, | |||
28 | int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, | 26 | int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, |
29 | unsigned int idx, bool override_active_level, | 27 | unsigned int idx, bool override_active_level, |
30 | unsigned int debounce, bool *gpio_invert); | 28 | unsigned int debounce, bool *gpio_invert); |
31 | void mmc_gpiod_free_cd(struct mmc_host *host); | ||
32 | void mmc_gpiod_request_cd_irq(struct mmc_host *host); | 29 | void mmc_gpiod_request_cd_irq(struct mmc_host *host); |
33 | 30 | ||
34 | #endif | 31 | #endif |