projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d4b030
)
usbd: check mmc is supported
author
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 5 Feb 2010 12:31:59 +0000
(21:31 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Fri, 5 Feb 2010 12:31:59 +0000
(21:31 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
common/cmd_usbd.c
patch
|
blob
|
history
diff --git
a/common/cmd_usbd.c
b/common/cmd_usbd.c
index
cc4a2ef
..
8099722
100644
(file)
--- a/
common/cmd_usbd.c
+++ b/
common/cmd_usbd.c
@@
-347,6
+347,11
@@
static int write_file_mmc(struct usbd_ops *usbd, char *ramaddr, u32 len,
int i;
int ret;
+ if (!usbd->mmc_total) {
+ printf("MMC is not supported!\n");
+ return 0;
+ }
+
ram_addr = (u32)down_ram_addr;
if (cur_blk_offset == 0) {