mmc: Ensure hardware partitions don't mess with mmcblk device naming.
authorAndrei Warkentin <andreiw@motorola.com>
Fri, 22 Apr 2011 03:46:13 +0000 (22:46 -0500)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:02:38 +0000 (21:02 -0400)
commitf06c9153f5ecd47dfed23f87b9d08e42ff0e4170
tree0557ae6ba11f6bf1c100f3432a1547c62cbcc864
parent393c1a34dd852dbf0c409ec94dd48057100480ea
mmc: Ensure hardware partitions don't mess with mmcblk device naming.

With the hardware partitions support (which represent additional logical
devices present on MMC), devidx does not correspond with index used to form
/dev/mmcblkX names. So use an additional allocated index for device names.

Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c