From: Minkyu Kang Date: Wed, 18 Nov 2009 05:05:05 +0000 (+0900) Subject: usbd: bugfix: get correct part id X-Git-Tag: CES1223_2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef73cbdb76079e880ffd2779c1bb683d50c1cabe;p=kernel%2Fu-boot.git usbd: bugfix: get correct part id Signed-off-by: Minkyu Kang --- diff --git a/common/cmd_usbd.c b/common/cmd_usbd.c index 70ddc63..d5dc90f 100644 --- a/common/cmd_usbd.c +++ b/common/cmd_usbd.c @@ -16,7 +16,7 @@ #ifdef CONFIG_CMD_MTDPARTS #include -static struct part_info *parts[6]; +static struct part_info *parts[8]; #endif static const char pszMe[] = "usbd: "; @@ -427,12 +427,6 @@ int write_file_system(char *ramaddr, ulong len, char *offset, int yaffs_write = 0; #endif int ret = 0; - int ubi_set = 0; - - if (part_num == FILESYSTEM3_PART_ID) { - part_num = FILESYSTEM_PART_ID; - ubi_set = 1; - } #ifdef CONFIG_CMD_UBI /* UBI Update */