]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: renesas_sdhi_core: Add missing tmio_mmc_host_free() at remove
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 6 Nov 2020 09:25:30 +0000 (18:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:29 +0000 (19:22 +0100)
commit33edb616f3ce7de25c775f0782cb732bf6c7a965
treecbb23fe649bd470fd61a272677b3c91ebf2ef199
parent85db3a44309410aca8d0c6f7970d56d035cfae61
mmc: renesas_sdhi_core: Add missing tmio_mmc_host_free() at remove

commit e8973201d9b281375b5a8c66093de5679423021a upstream.

The commit 94b110aff867 ("mmc: tmio: add tmio_mmc_host_alloc/free()")
added tmio_mmc_host_free(), but missed the function calling in
the sh_mobile_sdhi_remove() at that time. So, fix it. Otherwise,
we cannot rebind the sdhi/mmc devices when we use aliases of mmc.

Fixes: 94b110aff867 ("mmc: tmio: add tmio_mmc_host_alloc/free()")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/1604654730-29914-1-git-send-email-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/renesas_sdhi_core.c