mmc: sdhci-of-at91: factor out clks and presets setting
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Thu, 13 Jul 2017 08:04:17 +0000 (10:04 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:30 +0000 (14:01 +0200)
commitc8a019e7e12e1d450b5fd8e5bfb180b5a8004d9f
tree97f3f30089208e5f389f4fee71027e50ef6984bf
parent62b1ab2a71c4d3acb59e109fadb5fec3430642ed
mmc: sdhci-of-at91: factor out clks and presets setting

The setting of clocks and presets is currently done in probe only but
once deep PM support is added, it'll be needed in the resume function.

Let's create a function for this setting.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c