Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228898
b: refs/heads/master
c: 30201e7
h: refs/heads/master
v: v3
  • Loading branch information
Ohad Ben-Cohen authored and Chris Ball committed Jan 9, 2011
1 parent 9a59efd commit 0cdd317
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f230f454fe04ba326ffaead3a6b88dcf44eaf4b
refs/heads/master: 30201e7f3ac639fe98fcd25d40346b65dde9ecba
8 changes: 6 additions & 2 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1506,8 +1506,12 @@ void mmc_rescan(struct work_struct *work)

mmc_bus_get(host);

/* if there is a card registered, check whether it is still present */
if ((host->bus_ops != NULL) && host->bus_ops->detect && !host->bus_dead)
/*
* if there is a _removable_ card registered, check whether it is
* still present
*/
if (host->bus_ops && host->bus_ops->detect && !host->bus_dead
&& mmc_card_is_removable(host))
host->bus_ops->detect(host);

mmc_bus_put(host);
Expand Down

0 comments on commit 0cdd317

Please sign in to comment.