linux/drivers/mmc/card
Tejun Heo f331c0296f block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly
  access devt instead of computing it from ->major and ->first_minor.

  Note that all references to ->major and ->first_minor outside of
  block layer is used to determine devt of the disk (the part0) and as
  ->major and ->first_minor will continue to represent devt for the
  disk, converting these users aren't strictly necessary.  However,
  convert them for consistency.

* Implement disk_max_parts() to avoid directly deferencing
  genhd->minors.

* Update bdget_disk() such that it doesn't assume consecutive minor
  space.

* Move devt computation from register_disk() to add_disk() and make it
  the only one (all other usages use the initially determined value).

These changes clean up the code and will help disk->part dereference
fix and extended block device numbers.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-10-09 08:56:05 +02:00
..
block.c block: don't depend on consecutive minor space 2008-10-09 08:56:05 +02:00
Kconfig mmc: mmc host test driver 2008-05-14 21:02:16 +02:00
Makefile mmc: mmc host test driver 2008-05-14 21:02:16 +02:00
mmc_test.c mmc_test: initialize mmc_test_lock statically 2008-09-20 13:03:50 +02:00
queue.c mmc_block: bounce buffer highmem support 2008-07-23 14:42:09 +02:00
queue.h mmc: bounce requests for simple hosts 2007-07-09 21:22:53 +02:00
sdio_uart.c sdio_uart: Fix SDIO break control to now return success or an error 2008-07-15 15:47:04 +02:00