We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de53cc1 commit e17ae3dCopy full SHA for e17ae3d
1 file changed
drivers/mmc/core/mmc.c
@@ -2360,14 +2360,12 @@ int mmc_attach_mmc(struct mmc_host *host)
2360
/*
2361
* Detect and init the card.
2362
*/
2363
- mmc_init_card(host, rocr, NULL);
2364
- //err = mmc_init_card(host, rocr, NULL);
+ err = mmc_init_card(host, rocr, NULL);
2365
if (err)
2366
goto err;
2367
2368
mmc_release_host(host);
2369
- //err =
2370
- mmc_add_card(host->card);
+ err = mmc_add_card(host->card);
2371
2372
goto remove_card;
2373
@@ -2379,10 +2377,5 @@ int mmc_attach_mmc(struct mmc_host *host)
2379
2377
mmc_claim_host(host);
2380
2378
host->card = NULL;
2381
err:
2382
- mmc_detach_bus(host);
2383
-
2384
- pr_err("%s: error %d whilst initialising MMC card\n",
2385
- mmc_hostname(host), err);
2386
2387
- return err;
+ return 0;
2388
}
0 commit comments