summaryrefslogtreecommitdiff
path: root/board/samsung/common/ums.c
diff options
context:
space:
mode:
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);
}