mmc: Avoid re-using minor numbers before the original device is closed.
commit1dff314451fa24d6b107aa05393d3169e56a7e0a
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 21 Nov 2007 17:45:12 +0000 (21 18:45 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Wed, 21 Nov 2007 17:45:38 +0000 (21 18:45 +0100)
tree6aeca206d6b9ec3b8f3168351822183342e9604c
parentb37a05069b9ab9fb1e52393a3448d710c50c54d5
mmc: Avoid re-using minor numbers before the original device is closed.

Move the code which marks the minor number as free to mmc_blk_put() so
that it happens on the final close() (or removal), instead of doing it
at removal even when the device is still logically open.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/card/block.c