mmc: core: Move mmc_of_parse_voltage() to host.c
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 13 Feb 2019 17:46:45 +0000 (18:46 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 14:20:58 +0000 (15:20 +0100)
commit9d2d24302e615e984034d2f60a4da739de6bd637
tree44578372400bf4b0217153d1c51fa0e7f5bd6480
parent3958790e673244ec3b0c62197b7372af303f1351
mmc: core: Move mmc_of_parse_voltage() to host.c

MMC OF parsing functions, which parses various host DT properties, should
stay close to each other. Therefore, let's move mmc_of_parse_voltage()
close to mmc_of_parse() into host.c.

Additionally, there is no reason to build the code only when CONFIG_OF is
set, as there should be stub functions for the OF helpers that is being
used, so let's drop this condition as well.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/host.c