]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: stm32_sdmmc2: Use mmc_of_parse() to read host capabilities
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 9 Sep 2020 21:54:02 +0000 (16:54 -0500)
committerPatrick Delaunay <patrick.delaunay@st.com>
Wed, 21 Oct 2020 16:11:56 +0000 (18:11 +0200)
commit7f4a21bb161e7daea5846d0d877da56017568cb9
treea6c3879e782615d14c20969530a1f6244dd5865e
parent14b76dae8e06f996154a1767a721334c11d84bca
mmc: stm32_sdmmc2: Use mmc_of_parse() to read host capabilities

mmc_of_parse() can populate the 'f_max' and 'host_caps' fields of
struct mmc_config from devicetree.
The same logic is duplicated in stm32_sdmmc2_probe(). Use
mmc_of_parse(), which is more generic.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/stm32_sdmmc2.c