mmc: sunxi: Move clock configuration to a function
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 14:23:02 +0000 (16:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:42 +0000 (15:08 +0200)
commitad04d9555da02c719de25b7d1e81ea8d0d2c4838
tree3bb188880dd2ed120eb0995fc86d7adb0441403c
parent3f6c808e524700cb4f45123f9390ff83289c31e5
mmc: sunxi: Move clock configuration to a function

In order to improve readibility and reusability, let's move the clock setup
to a small function called by our .set_ios hook.

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