usbd: add workaround code
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 30 Nov 2010 09:02:14 +0000 (18:02 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 30 Nov 2010 09:02:14 +0000 (18:02 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/cpu/armv7/s5p-common/usb_downloader.c

index 04568cc..2d13835 100644 (file)
@@ -161,13 +161,9 @@ static int usb_init(void)
 static void usb_stop(void)
 {
 #ifdef CONFIG_MMC_ASYNC_WRITE
-       struct mmc *mmc;
-
        /* We must wait until finish the writing */
-       if (!s5p_no_mmc_support()) {
-               mmc = find_mmc_device(0);
-               mmc_init(mmc);
-       }
+       if (!s5p_no_mmc_support())
+               run_command("mbr show", 0);     /* Workaround */
 #endif
 #ifdef CONFIG_S5PC1XXFB
        if (!s5p_no_lcd_support()) {