]> git.baikalelectronics.ru Git - uboot.git/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)
commit39079ac78a42ea109350c9f17da05fa5e568c002
tree32507efa44df2e98f3b04d403846de3f821ed016
parent50920a3ea6c9b6349bbac7ed576c373f430ecdb0
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