Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 86236813 authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: core: Invoke ->card_event() callback only when needed



The ->card_event() callback may be called when re-scan is disabled and for
non-removable cards, which both cases are unnecessary.

Instead let's move the call later in mmc_rescan() where these constraints
have been validated.

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent dc28562b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment