]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit656f99de92dae4c768b951b927781ce92a51fc2f
tree44578372400bf4b0217153d1c51fa0e7f5bd6480
parent7e4214a5fa3886e671a86e43b9f542501c0ea3c6
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