]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: arm_pl180_mmci: Simplify code using mmc_of_parse()
authorStephan Gerhold <stephan@gerhold.net>
Tue, 6 Jul 2021 14:54:35 +0000 (16:54 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 30 Jul 2021 09:13:02 +0000 (17:13 +0800)
commit4daf2ec357c1c22ec0dc8db206add877f6632bc8
treec2cdc83c17192f6122c94f229c799166e9a124f1
parent19e1da0c66454bd6206a4badfdc0077d7fd76aed
mmc: arm_pl180_mmci: Simplify code using mmc_of_parse()

Simplify the code a bit by using the common mmc_of_parse() function
instead of duplicating the device tree parsing code. We can still get
a default value for cfg->f_max by assigning it before calling
mmc_of_parse().

Another advantage of this refactoring is that we parse more properties
now, e.g. "non-removable" can be used to disable CD entirely.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com> on stm32f769-disco
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/arm_pl180_mmci.c