projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
807e8e4
)
mmc: Explain why we make adjacent mmc_bus_{put,get} calls during rescan.
author
Chris Ball
<cjb@laptop.org>
Tue, 4 Jan 2011 17:20:22 +0000
(12:20 -0500)
committer
Chris Ball
<cjb@laptop.org>
Sun, 9 Jan 2011 04:52:25 +0000
(23:52 -0500)
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/core.c
b/drivers/mmc/core/core.c
index 198f70bad9084a66dc5b2372ca3e81c61dff566e..4b1d8fb04e9b30569579be2875777deae2e5a0ff 100644
(file)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-1531,9
+1531,11
@@
void mmc_rescan(struct work_struct *work)
&& mmc_card_is_removable(host))
host->bus_ops->detect(host);
+ /*
+ * Let mmc_bus_put() free the bus/bus_ops if we've found that
+ * the card is no longer present.
+ */
mmc_bus_put(host);
-
-
mmc_bus_get(host);
/* if there still is a card present, stop here */