From: Patrick DELAUNAY Date: Wed, 21 Oct 2020 09:06:41 +0000 Subject: [PATCH v2 2/2] mmc: stm32_sdmmc2: Use mmc_of_parse() to read host capabilities In-Reply-To: <20200915195147.2659607-2-mr.nuke.me@gmail.com> References: <20200909215402.366561-1-mr.nuke.me@gmail.com> <20200915195147.2659607-2-mr.nuke.me@gmail.com> Message-ID: <95e825dd0d234f3da8a0ebfdef086d63@SFHDAG2NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Alexandru, > From: Alexandru Gagniuc > Sent: mardi 15 septembre 2020 21:52 > > 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 > --- > Changes from v1: > - Check the return value of mmc_of_parse(). > - The call to mmc_of_parse() is moved further up. This means we can just > 'return err' on error instead of exiting via goto. > > drivers/mmc/stm32_sdmmc2.c | 24 ++++++------------------ > 1 file changed, 6 insertions(+), 18 deletions(-) > Applied to u-boot-stm/master, thanks! Regards Patrick