fix bug:It did not respond with the removal of card at the first time if you reboot device with card present.

This commit is contained in:
xbw
2011-09-13 15:21:33 +08:00
parent 1921541e99
commit 4310b3e542

View File

@@ -3046,7 +3046,14 @@ static int rk29_sdmmc_probe(struct platform_device *pdev)
if(RK29_CTRL_SDMMC_ID== host->pdev->id)
{
clear_bit(RK29_SDMMC_CARD_PRESENT, &host->flags);
if(rk29_sdmmc_get_cd(host->mmc))
{
set_bit(RK29_SDMMC_CARD_PRESENT, &host->flags);
}
else
{
clear_bit(RK29_SDMMC_CARD_PRESENT, &host->flags);
}
}