We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66fbacc commit f06391cCopy full SHA for f06391c
drivers/mmc/core/bus.c
@@ -399,11 +399,6 @@ void mmc_remove_card(struct mmc_card *card)
399
mmc_remove_card_debugfs(card);
400
#endif
401
402
- if (host->cqe_enabled) {
403
- host->cqe_ops->cqe_disable(host);
404
- host->cqe_enabled = false;
405
- }
406
-
407
if (mmc_card_present(card)) {
408
if (mmc_host_is_spi(card->host)) {
409
pr_info("%s: SPI card removed\n",
@@ -416,6 +411,10 @@ void mmc_remove_card(struct mmc_card *card)
416
411
of_node_put(card->dev.of_node);
417
412
}
418
413
414
+ if (host->cqe_enabled) {
415
+ host->cqe_ops->cqe_disable(host);
+ host->cqe_enabled = false;
+ }
+
419
put_device(&card->dev);
420
421
0 commit comments