]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: meson-gx: remove mmc host on device removal
authorMichał Zegan <webczat@webczatnet.pl>
Sat, 18 Feb 2017 17:06:47 +0000 (18:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:17 +0000 (21:41 +0200)
commit742a71c1457feff8a8ad26647eee2c8d9c4bd2f2
treeebd9c36f3190e6db764b2da5543712b045e3340b
parentf3d25123c2e0e1ae26be695ed2ab7da67285964d
mmc: meson-gx: remove mmc host on device removal

The mmc host was added in meson_mmc_probe, but never removed in
meson_mmc_remove.
Fix that by removing the host before deallocating other resources.

Signed-off-by: Michał Zegan <webczat@webczatnet.pl>
Tested-by: Michał Zegan <webczat@webczatnet.pl>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c