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)
committerSteve Kondik <shade@chemlab.org>
Sun, 5 Sep 2010 04:26:57 +0000 (00:26 -0400)
commit63158eabadb1dc5e8f72a0d73148fc55dcda8f4b
tree16b8c2000edd2bfe3096c96ee1cba1a70825636e
parent73884c4645b99bd8002378fa95aab83905559895
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