mmc: make number of mmcblk minors configurable
authorOlof Johansson <olof@lixom.net>
Sat, 18 Sep 2010 01:19:57 +0000 (21:19 -0400)
committerChris Ball <cjb@laptop.org>
Mon, 25 Oct 2010 01:28:46 +0000 (09:28 +0800)
commit5e71b7a64cb4c6cff75ca42b535d8227526ec592
tree8bec2645c764c2711853ba4300d5eabcf80c3245
parent061c6c847eeb11743e489a16e907b41c6f9042b6
mmc: make number of mmcblk minors configurable

The old limit of number of minor numbers per mmcblk device was hardcoded
at 8.  This isn't enough for some of the more elaborate partitioning
schemes, for example those used by Chrome OS.

Since there might be a bunch of systems out there with static /dev
contents that relies on the old numbering scheme, let's make it a
build-time option with the default set to the previous 8.

Also provide a boot/modprobe-time parameter to override the config
default: mmcblk.perdev_minors.

Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Mandeep Baines <msb@chromium.org>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/devices.txt
drivers/mmc/card/Kconfig
drivers/mmc/card/block.c