mmc_block: Allow more than 8 partitions per card
authorColin Cross <ccross@android.com>
Fri, 3 Sep 2010 19:41:21 +0000 (12:41 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:01 +0000 (13:51 -0800)
commit2643e5366d9d2073c8a2d5af52997cc27b7c4ff0
treea2beb41bec33daab2fb989cbbe0919d0cfa06c87
parent3ad3ce2c5a30cb57f5a1356d5dc802ef822142a7
mmc_block: Allow more than 8 partitions per card

Set the GENHD_FL_EXT_DEVT flag, which will allocate minor numbers
in major 259 for partitions past disk->minors.

Also remove the use of disk_devt to determine devidx from md->disk.
md->disk->first_minor is always initialized from devidx and can
always be used to recover it.

Signed-off-by: Colin Cross <ccross@android.com>
drivers/mmc/card/block.c