emmc: fixed bug 'failed to check sd card partition'
authorkfx <kfx@rock-chips.com>
Sat, 2 Nov 2013 06:45:25 +0000 (14:45 +0800)
committerkfx <kfx@rock-chips.com>
Sat, 2 Nov 2013 06:45:25 +0000 (14:45 +0800)
commitd0a66796aad3d2637f76700908d096fe9f6e424d
treefe6dcb15d78a4153b4b0aa7661303cdac891ec65
parent4dcec1ce90e1928d68f8030aa784349e5528ea08
emmc: fixed bug 'failed to check sd card partition'

BUG: if CONFIG_EMMC_RK is defined but storage memory is FLASH,
     it will fail to check sd card partition

     emmc failed to load ==>
     sdcard's disk->first_minor = 0 ==>
     sdcard's msdos_partition return 0

WARN: if disk's flags: 2(include/linux/genhd.h) is defined in new kernel version,
      it maybe a problem!
drivers/mmc/card/block.c
fs/partitions/msdos.c
fs/partitions/mtdpart.c