mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-29 06:27:12 +08:00
Update to 1ace04931c77df9
1. Add 2k300_gongkong board support
This commit is contained in:
@@ -1033,6 +1033,10 @@ probe_free_host:
|
||||
static void ls2k_mci_shutdown(struct platform_device *pdev)
|
||||
{
|
||||
struct mmc_host *mmc = platform_get_drvdata(pdev);
|
||||
struct ls2k_mci_host *host = mmc_priv(mmc);
|
||||
|
||||
if (mmc->caps & MMC_CAP_NONREMOVABLE)
|
||||
return;
|
||||
|
||||
if (mmc->card)
|
||||
mmc->card->state &= ~1;
|
||||
@@ -1045,6 +1049,9 @@ static void ls2k_mci_remove(struct platform_device *pdev)
|
||||
struct mmc_host *mmc = platform_get_drvdata(pdev);
|
||||
struct ls2k_mci_host *host = mmc_priv(mmc);
|
||||
|
||||
if (mmc->caps & MMC_CAP_NONREMOVABLE)
|
||||
return;
|
||||
|
||||
ls2k_mci_shutdown(pdev);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user