mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
rkemmc: if card is emmc, msdos_partition return false
This commit is contained in:
parent
07c53b6694
commit
111efae5e7
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user