rkemmc: if card is emmc, msdos_partition return false
authorkfx <kfx@rock-chips.com>
Tue, 29 Oct 2013 07:45:23 +0000 (15:45 +0800)
committerkfx <kfx@rock-chips.com>
Tue, 29 Oct 2013 07:45:23 +0000 (15:45 +0800)
fs/partitions/msdos.c

index a138e5e8ab0976814485d31e27b6d5ec33a0ec27..bb7f006f20f8fa45fb3fb440037a453f459a618a 100644 (file)
@@ -440,6 +440,11 @@ int msdos_partition(struct parsed_partitions *state)
        struct partition *p;
        struct fat_boot_sector *fb;
        int slot;
+#ifdef CONFIG_EMMC_RK
+       //if card is emmc, msdos_partition return false
+       if(state->bdev->bd_disk->first_minor == 0)
+               return 0;
+#endif
 
        data = read_part_sector(state, 0, &sect);
        if (!data)