projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c53b6
)
rkemmc: if card is emmc, msdos_partition return false
author
kfx
<kfx@rock-chips.com>
Tue, 29 Oct 2013 07:45:23 +0000
(15:45 +0800)
committer
kfx
<kfx@rock-chips.com>
Tue, 29 Oct 2013 07:45:23 +0000
(15:45 +0800)
fs/partitions/msdos.c
patch
|
blob
|
history
diff --git
a/fs/partitions/msdos.c
b/fs/partitions/msdos.c
index a138e5e8ab0976814485d31e27b6d5ec33a0ec27..bb7f006f20f8fa45fb3fb440037a453f459a618a 100644
(file)
--- a/
fs/partitions/msdos.c
+++ b/
fs/partitions/msdos.c
@@
-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, §);
if (!data)