mmc: sunxi: Use mmc_of_parse()
authorAndre Przywara <andre.przywara@arm.com>
Wed, 21 Apr 2021 08:33:04 +0000 (09:33 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 10 Jul 2021 00:22:09 +0000 (01:22 +0100)
commitac62dadb37cb57fdf2117f191c32f9992f3e5eca
treeb562684a47c9454c803611e37e7835e65749b589
parent9faae5457f5221f2f036153399ab38f37114a871
mmc: sunxi: Use mmc_of_parse()

At the moment the Allwinner MMC driver parses the bus-width and
non-removable DT properties itself, in the probe() routine.

There is actually a generic function provided by the MMC framework doing
this job, also it parses more generic properties like broken-cd and
advanced transfer modes.

Drop our own code and call mmc_of_parse() instead, to get all new
features for free.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/sunxi_mmc.c