Skip to content

Commit

Permalink
mmc: Explain why we make adjacent mmc_bus_{put,get} calls during rescan.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Ball <[email protected]>
  • Loading branch information
cjb committed Jan 9, 2011
1 parent 807e8e4 commit c584179
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c584179

Please sign in to comment.