mmc: host: tmio: disable clocks when unbinding
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 17 Jan 2017 20:26:01 +0000 (21:26 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:32 +0000 (13:20 +0100)
commitdfcba5ffca989749d1fc49d5b82a2d007b1295b7
tree5f45f8865388ff4cbba2013571be3caf3ba9a97d
parent44bf23128f48eabddb7cd6a44b369f0b1e66de97
mmc: host: tmio: disable clocks when unbinding

Create a helper function to disable clocks and use it in remove(), too.
Now, clk_summary in debugfs reports the clocks as disabled and
unprepared after unbinding.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_pio.c