mmc: mmc_test: avoid stalled file in debugfs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 22 Jul 2011 13:13:36 +0000 (16:13 +0300)
committerChris Ball <cjb@laptop.org>
Sat, 13 Aug 2011 18:50:22 +0000 (14:50 -0400)
commitd5a5bd1c3f7e8d010393530d60df8da75218a488
treee24b1d592f2ddec088af5d61488b034c1409480c
parent7199e2b61d715c5e8901ff32513d2b80db8d3737
mmc: mmc_test: avoid stalled file in debugfs

During card removal and inserting cycle the test file in the debugfs could be
stalled until the host driver removes it. Let's keep the file in the linked
list and destroy it when card is removed.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Per Forlin <per.forlin@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/mmc_test.c