diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-09-23 20:00:25 (GMT) |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-29 09:27:51 (GMT) |
commit | 6800754c3674fb36350b2df9c3f84676e7e7a8f7 (patch) | |
tree | 4e0828da9df9eb668bda45ab36b94083cdd28a03 /drivers/mmc/core | |
parent | 5fef365b64b99d298d724b30b5c291b05d169f58 (diff) | |
download | linux-6800754c3674fb36350b2df9c3f84676e7e7a8f7.tar.xz |
mmc: Fix use of wrong device in mmc_gpiod_free_cd()
mmc_gpiod_free_cd() is paired with mmc_gpiod_request_cd()
and both must reference the same device which is the
actual host controller device not the mmc_host class
device.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/slot-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/slot-gpio.c b/drivers/mmc/core/slot-gpio.c index 3af30e9..38f7655 100644 --- a/drivers/mmc/core/slot-gpio.c +++ b/drivers/mmc/core/slot-gpio.c @@ -390,7 +390,7 @@ void mmc_gpiod_free_cd(struct mmc_host *host) host->slot.cd_irq = -EINVAL; } - devm_gpiod_put(&host->class_dev, ctx->cd_gpio); + devm_gpiod_put(host->parent, ctx->cd_gpio); ctx->cd_gpio = NULL; } |