]> git.sur5r.net Git - u-boot/commit
dm: mmc: fsl_esdhc: Detect init failure
authorSimon Glass <sjg@chromium.org>
Sat, 29 Jul 2017 17:35:20 +0000 (11:35 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Aug 2017 07:44:17 +0000 (16:44 +0900)
commit201e828b22d79bafc7a68a93e1ade4b242a12325
tree32507efa44df2e98f3b04d403846de3f821ed016
parent446e077a21024edb3d8636a979a99abbcaec9846
dm: mmc: fsl_esdhc: Detect init failure

Since esdhc_init_common() can fail it should return an error code. Update
this and also adjust the timeout mechanism to use get_timer(), which is a
more common approach.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/fsl_esdhc.c