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)
committerColin Cross <ccross@android.com>
Tue, 14 Feb 2012 19:25:27 +0000 (11:25 -0800)
commit5b45cdd3fc03b4f950454fa967b2c187b75db6cb
tree05baf2a1353b6860b3d46f8ea208544c0dca76e7
parenta7b5afec648a754968abfb51d12c0deeb33bef7b
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