mmc: sunxi: Move resources management to separate functions
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 8 Mar 2018 14:52:51 +0000 (15:52 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Mar 2018 13:43:22 +0000 (14:43 +0100)
commit774c010350a16f44705971e8aff457580628c76e
tree865a0ad052c7eee1dbf9622ccf00efeb1aa2864f
parente382ab741252471383e9990583258e3054f66963
mmc: sunxi: Move resources management to separate functions

We've had all our resources management, and especially the clocks and reset
sequence, done directly as part of the probe.

As we want to implement runtime_pm, we'll obviously want to have that
moved outside of the probe so that we can call do it in our runtime suspend
and resume hooks without too much duplication.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c