]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: Fix use of wrong device in mmc_gpiod_free_cd()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 23 Sep 2014 20:00:25 +0000 (23:00 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Sep 2014 09:27:51 +0000 (11:27 +0200)
commit6800754c3674fb36350b2df9c3f84676e7e7a8f7
tree4e0828da9df9eb668bda45ab36b94083cdd28a03
parent5fef365b64b99d298d724b30b5c291b05d169f58
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>
drivers/mmc/core/slot-gpio.c