We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61fadd5 commit b0ea155Copy full SHA for b0ea155
drivers/mmc/core/bus.c
@@ -373,11 +373,6 @@ void mmc_remove_card(struct mmc_card *card)
373
mmc_remove_card_debugfs(card);
374
#endif
375
376
- if (host->cqe_enabled) {
377
- host->cqe_ops->cqe_disable(host);
378
- host->cqe_enabled = false;
379
- }
380
-
381
if (mmc_card_present(card)) {
382
if (mmc_host_is_spi(card->host)) {
383
pr_info("%s: SPI card removed\n",
@@ -390,6 +385,10 @@ void mmc_remove_card(struct mmc_card *card)
390
385
of_node_put(card->dev.of_node);
391
386
}
392
387
388
+ if (host->cqe_enabled) {
389
+ host->cqe_ops->cqe_disable(host);
+ host->cqe_enabled = false;
+ }
+
393
put_device(&card->dev);
394
395
0 commit comments