summaryrefslogtreecommitdiff
path: root/board/samsung/common/ums.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-05-06 14:45:51 -0400
committerTom Rini <trini@ti.com>2014-05-06 14:45:51 -0400
commit3c3f13f81942134edff280fcb5e7137c623e7dac (patch)
treeb4c23dce6db18c7942f309c32cd80b8db31ba95d /board/samsung/common/ums.c
parent52fded7b94d98c73a824e4a9d90596a33a1cbb8a (diff)
parentaf41d6b4cb1602abebaaa9c8774a9b0ece564796 (diff)
downloadu-boot-imx-3c3f13f81942134edff280fcb5e7137c623e7dac.zip
u-boot-imx-3c3f13f81942134edff280fcb5e7137c623e7dac.tar.gz
u-boot-imx-3c3f13f81942134edff280fcb5e7137c623e7dac.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'board/samsung/common/ums.c')
-rw-r--r--board/samsung/common/ums.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/board/samsung/common/ums.c b/board/samsung/common/ums.c
index dc155ad..cebabe9 100644
--- a/board/samsung/common/ums.c
+++ b/board/samsung/common/ums.c
@@ -66,11 +66,9 @@ static struct ums *ums_disk_init(struct mmc *mmc)
struct ums *ums_init(unsigned int dev_num)
{
- struct mmc *mmc = NULL;
+ struct mmc *mmc = find_mmc_device(dev_num);
- mmc = find_mmc_device(dev_num);
- if (!mmc)
+ if (!mmc || mmc_init(mmc))
return NULL;
-
return ums_disk_init(mmc);
}