]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: Register debugfs dir before calling card probe function.
authorViresh Kumar <viresh.kumar@st.com>
Tue, 4 Jan 2011 17:55:14 +0000 (12:55 -0500)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:26 +0000 (23:52 -0500)
commit69481257cba47549fb50a3a39434ed47e3fbef1e
tree331427f7ba4fad1bb1d2cef6753f4c11b5ddba04
parente26794f3a2793ead1d248eea43aa6953549aa87f
mmc: Register debugfs dir before calling card probe function.

This way, the probe function may register debugfs files if it wants to.
This fixes a bug with mmc_test where mmc_test_register_file_test() is
called before the card's debugfs dir exists, and so it fails.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Tested-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/bus.c