mmc: meson-gx: rework clock init function
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 28 Aug 2017 14:29:07 +0000 (16:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:48 +0000 (15:03 +0200)
commitbd911ec467c674995ac9b8ce83dc9d7f7b55b5be
tree10420d89c5d7f76705d9ad0ef259dc3e077826b3
parentf89f55df5927a55c107d06ae998a1575ad9d4c9a
mmc: meson-gx: rework clock init function

Thanks to devm, carrying the clock structure around after init is not
necessary. Rework the function to remove these from the controller host
data.

Finally, set initial mmc clock rate before enabling it, simplifying the
exit condition.

Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c