Skip to content
Commit 4daf2ec3 authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Peng Fan
Browse files

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: default avatarStephan Gerhold <stephan@gerhold.net>
Reviewed-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com> on stm32f769-disco
Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 19e1da0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment