commit | 1dff314451fa24d6b107aa05393d3169e56a7e0a | [log] [tgz] |
---|---|---|
author | David Woodhouse <dwmw2@infradead.org> | Wed Nov 21 18:45:12 2007 +0100 |
committer | Pierre Ossman <drzeus@drzeus.cx> | Wed Nov 21 18:45:38 2007 +0100 |
tree | 6aeca206d6b9ec3b8f3168351822183342e9604c | |
parent | b37a05069b9ab9fb1e52393a3448d710c50c54d5 [diff] |
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>