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:
1c8fd5d
)
rkemmc: msdos: check_partition: fixed usb check error
author
kfx
<kfx@rock-chips.com>
Wed, 30 Oct 2013 09:39:42 +0000
(17:39 +0800)
committer
kfx
<kfx@rock-chips.com>
Wed, 30 Oct 2013 09:39:42 +0000
(17:39 +0800)
fs/partitions/msdos.c
patch
|
blob
|
history
diff --git
a/fs/partitions/msdos.c
b/fs/partitions/msdos.c
index bb7f006f20f8fa45fb3fb440037a453f459a618a..8b098c1b1d2bdd56006950fa8d08e2c611f2e30a 100644
(file)
--- a/
fs/partitions/msdos.c
+++ b/
fs/partitions/msdos.c
@@
-442,7
+442,7
@@
int msdos_partition(struct parsed_partitions *state)
int slot;
#ifdef CONFIG_EMMC_RK
//if card is emmc, msdos_partition return false
- if(state->bdev->bd_disk->first_minor == 0)
+ if(state->bdev->bd_disk->
major == MMC_BLOCK_MAJOR &&state->bdev->bd_disk->
first_minor == 0)
return 0;
#endif